[Bug 267023] bhyve exit on hlt subtly broken on VT-x

2022-10-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267023

Bug ID: 267023
   Summary: bhyve exit on hlt subtly broken on VT-x
   Product: Base System
   Version: CURRENT
  Hardware: Any
OS: Any
Status: New
  Severity: Affects Only Me
  Priority: ---
 Component: bhyve
  Assignee: virtualization@FreeBSD.org
  Reporter: j...@freebsd.org

The VMCS contains a field that is set to 1 to indicate that there is a pending
HLT.  In this state, vmxrun will still HLT on resume even if, e.g., the RIP has
been updated to point to a different instruction.  VMMs are required to
explicitly clear this field after a VMexit due to a HLT if the processor should
resume.

See also: https://www.illumos.org/issues/15079

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


[Bug 267023] bhyve subtly broken on VT-x without exit-on-hlt

2022-10-13 Thread bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267023

John Baldwin  changed:

   What|Removed |Added

Summary|bhyve exit on hlt subtly|bhyve subtly broken on VT-x
   |broken on VT-x  |without exit-on-hlt

--- Comment #1 from John Baldwin  ---
I got the sense backwards in my description.  VM exits due to HLT are fine,
it's when the vCPU exits for some other reason while HLTed that the field in
the VMCS is set and needs to be reset before resuming.

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