From: "Jan Beulich" Subject: Re: [PATCH] vmx: fix debugctl handling Date: Mon, 17 Mar 2008 15:26:06 +0000 Message-ID: <47DE9B9E.76E4.0078.0@novell.com> References: <47DA8BD4.76E4.0078.0@novell.com> <823A93EED437D048963A3697DB0E35DE0131BCC6@pdsmsx414.ccr.corp.intel.com> <47DE3DF1.76E4.0078.0@novell.com> <481ad8630803170638g7a4fb317t21417e0a9bdb1d1f@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <481ad8630803170638g7a4fb317t21417e0a9bdb1d1f@mail.gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Haitao Shan Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> "Haitao Shan" 17.03.08 14:38 >>> >Yes, I agree. Once allowing guest to modify this MSR, you have to = implement >some save/load functions. >I am wondering what you are trying to enable? As far as I know, DS area Yes, I'm considering adding support for DS, since Linux 2.6.25-rc briefly had support for this (it's now disabled again), so it's likely that pretty soon the functionality in the kernel will be there. Hence the hypervisor ought to support it. >(both PEBS and BTS) is not working properly now. You should assume that = any >events which will trigger DS write might happen right at the moment that = CPU >is in VMExit/VMEntry. Only using HW to switch related MSRs is not enough. That would be very bad - it would mean that you cannot reliably virtualize this. But - are you sure here? For PEBS, I could see this to be true (although it should be properly dealt with in hardware), but BTS shouldn't have any activity during vmexit/vmentry as there are no branches during that time. Jan