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)
Wed, Dec 4, 12:28 AM
Unknown Object (File)
Mon, Nov 25, 4:56 AM
Unknown Object (File)
Sun, Nov 24, 5:14 AM
Unknown Object (File)
Nov 23 2024, 4:33 AM
Unknown Object (File)
Nov 22 2024, 7:27 AM
Unknown Object (File)
Nov 22 2024, 1:30 AM
Unknown Object (File)
Nov 20 2024, 7:06 PM
Unknown Object (File)
Nov 19 2024, 6:39 PM
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.