Page MenuHomeFreeBSD

Add explicit detection of KVM hypervisor
ClosedPublic

Authored by badger on Jul 10 2016, 7:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 8:39 PM
Unknown Object (File)
Mon, Apr 15, 8:36 PM
Unknown Object (File)
Mon, Apr 15, 8:28 PM
Unknown Object (File)
Dec 23 2023, 12:03 PM
Unknown Object (File)
Dec 21 2023, 9:19 AM
Unknown Object (File)
Nov 7 2023, 2:05 AM
Unknown Object (File)
Oct 19 2023, 10:42 PM
Unknown Object (File)
Oct 6 2023, 1:06 AM
Subscribers

Details

Summary

Add explicit detection of KVM hypervisor

Set vm_guest to a new enum value (VM_GUEST_KVM) when kvm is detected and
use vm_guest in conditionals testing for KVM.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4484
Build 4535: arc lint + arc unit

Event Timeline

badger retitled this revision from to Add explicit detection of KVM hypervisor.
badger updated this object.
badger edited the test plan for this revision. (Show Details)
kib edited edge metadata.
This revision is now accepted and ready to land.Jul 10 2016, 7:34 PM

On line 797 of sys/amd64/amd64/pmap.c, we currently test vm_guest == VM_GUEST_VM. Should we test for != VM_GUEST_NO instead? That code seems to apply to all hypervisors. (Ditto for the i386 equivalent.)

On line 797 of sys/amd64/amd64/pmap.c, we currently test vm_guest == VM_GUEST_VM. Should we test for != VM_GUEST_NO instead? That code seems to apply to all hypervisors. (Ditto for the i386 equivalent.)

Good catch. Reading through the commit message, that certainly seems to be the intent.

badger edited edge metadata.
  • Test vm_guest != VM_GUEST_NO rather than vm_guest == VM_GUEST_VM
This revision now requires review to proceed.Jul 12 2016, 2:30 AM
vangyzen edited edge metadata.
This revision is now accepted and ready to land.Jul 12 2016, 3:11 PM
alc edited edge metadata.