From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH][QEMU] vmxcap: Augment reported information Date: Thu, 14 Feb 2013 09:56:11 +0200 Message-ID: <20130214075611.GI9817@redhat.com> References: <511B7C86.9050401@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Marcelo Tosatti , kvm , qemu-devel To: Jan Kiszka Return-path: Received: from mx1.redhat.com ([209.132.183.28]:59321 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756191Ab3BNH4P (ORCPT ); Thu, 14 Feb 2013 02:56:15 -0500 Content-Disposition: inline In-Reply-To: <511B7C86.9050401@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Feb 13, 2013 at 12:44:06PM +0100, Jan Kiszka wrote: > Parse the Basic VMX Information MSR and add the bit for the new posted > interrupts. > > Signed-off-by: Jan Kiszka Applied, thanks. > --- > scripts/kvm/vmxcap | 14 ++++++++++++++ > 1 files changed, 14 insertions(+), 0 deletions(-) > > diff --git a/scripts/kvm/vmxcap b/scripts/kvm/vmxcap > index 6363e73..a1a44a0 100755 > --- a/scripts/kvm/vmxcap > +++ b/scripts/kvm/vmxcap > @@ -96,6 +96,19 @@ class Misc(object): > print ' %-40s %s' % (self.bits[bits], fmt(v)) > > controls = [ > + Misc( > + name = 'Basic VMX Information', > + bits = { > + (0, 31): 'Revision', > + (32,44): 'VMCS size', > + 48: 'VMCS restricted to 32 bit addresses', > + 49: 'Dual-monitor support', > + (50, 53): 'VMCS memory type', > + 54: 'INS/OUTS instruction information', > + 55: 'IA32_VMX_TRUE_*_CTLS support', > + }, > + msr = MSR_IA32_VMX_BASIC, > + ), > Control( > name = 'pin-based controls', > bits = { > @@ -103,6 +116,7 @@ controls = [ > 3: 'NMI exiting', > 5: 'Virtual NMIs', > 6: 'Activate VMX-preemption timer', > + 7: 'Process posted interrupts', > }, > cap_msr = MSR_IA32_VMX_PINBASED_CTLS, > true_cap_msr = MSR_IA32_VMX_TRUE_PINBASED_CTLS, > -- > 1.7.3.4 -- Gleb.