public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 53621] New: nVMX: MSR_IA32_FEATURE_CONTROL
@ 2013-02-11 13:12 bugzilla-daemon
  2013-02-11 13:12 ` [Bug 53621] " bugzilla-daemon
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla-daemon @ 2013-02-11 13:12 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=53621

           Summary: nVMX: MSR_IA32_FEATURE_CONTROL
           Product: Virtualization
           Version: unspecified
          Platform: All
        OS/Version: Linux
              Tree: Mainline
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: kvm
        AssignedTo: virtualization_kvm@kernel-bugs.osdl.org
        ReportedBy: nyh@math.technion.ac.il
        Regression: No


The existing code emulates the guest's use of the IA32_FEATURE_CONTROL MSR
in a way that was enough to run nested VMX guests, but did not fully
conform to the VMX specification, and in particular did not allow a guest
BIOS to prevent the guest OS from using VMX by setting the lock bit on this
MSR.

This simple patch emulates this MSR better, allowing the guest to lock it, and
verifying its setting on VMXON. Also make sure that this MSR (and of course,
VMXON state) is reset on guest vcpu reset (via SIPI).

This patch stems from these discussions:

http://comments.gmane.org/gmane.comp.emulators.kvm.devel/87759
http://comments.gmane.org/gmane.comp.emulators.kvm.devel/87846

I'm not sure why it wasn't accepted. The only remaining issue appeared to be
this:

  > > > +#define VMXON_NEEDED_FEATURES \
  > > > +      (FEATURE_CONTROL_LOCKED |
FEATURE_CONTROL_VMXON_ENABLED_OUTSIDE_SMX)

  Move it to the top of the file, or as a variable at the top of the
  function please.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 53621] nVMX: MSR_IA32_FEATURE_CONTROL
  2013-02-11 13:12 [Bug 53621] New: nVMX: MSR_IA32_FEATURE_CONTROL bugzilla-daemon
@ 2013-02-11 13:12 ` bugzilla-daemon
  2013-02-11 13:16 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2013-02-11 13:12 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=53621





--- Comment #1 from Nadav Har'El <nyh@math.technion.ac.il>  2013-02-11 13:12:57 ---
Created an attachment (id=93111)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=93111)
Patch for better MSR_IA32_FEATURE_CONTROL emulation

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 53621] nVMX: MSR_IA32_FEATURE_CONTROL
  2013-02-11 13:12 [Bug 53621] New: nVMX: MSR_IA32_FEATURE_CONTROL bugzilla-daemon
  2013-02-11 13:12 ` [Bug 53621] " bugzilla-daemon
@ 2013-02-11 13:16 ` bugzilla-daemon
  2015-03-17  3:53 ` bugzilla-daemon
  2015-04-08  8:58 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2013-02-11 13:16 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=53621


Nadav Har'El <nyh@math.technion.ac.il> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |53601




-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 53621] nVMX: MSR_IA32_FEATURE_CONTROL
  2013-02-11 13:12 [Bug 53621] New: nVMX: MSR_IA32_FEATURE_CONTROL bugzilla-daemon
  2013-02-11 13:12 ` [Bug 53621] " bugzilla-daemon
  2013-02-11 13:16 ` bugzilla-daemon
@ 2015-03-17  3:53 ` bugzilla-daemon
  2015-04-08  8:58 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-03-17  3:53 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=53621

Bandan Das <bsd@makefile.in> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Blocks|                            |94971

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug 53621] nVMX: MSR_IA32_FEATURE_CONTROL
  2013-02-11 13:12 [Bug 53621] New: nVMX: MSR_IA32_FEATURE_CONTROL bugzilla-daemon
                   ` (2 preceding siblings ...)
  2015-03-17  3:53 ` bugzilla-daemon
@ 2015-04-08  8:58 ` bugzilla-daemon
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla-daemon @ 2015-04-08  8:58 UTC (permalink / raw)
  To: kvm

https://bugzilla.kernel.org/show_bug.cgi?id=53621

Paolo Bonzini <bonzini@gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bonzini@gnu.org
     Kernel Version|                            |3.19
         Resolution|---                         |CODE_FIX

--- Comment #2 from Paolo Bonzini <bonzini@gnu.org> ---
Fixed by commit b3897a49e22f (KVM: nVMX: Fix read/write to
MSR_IA32_FEATURE_CONTROL, 2013-07-08).

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-08  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-11 13:12 [Bug 53621] New: nVMX: MSR_IA32_FEATURE_CONTROL bugzilla-daemon
2013-02-11 13:12 ` [Bug 53621] " bugzilla-daemon
2013-02-11 13:16 ` bugzilla-daemon
2015-03-17  3:53 ` bugzilla-daemon
2015-04-08  8:58 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox