Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xen detection broken #19

Open
stbuehler opened this issue Jan 22, 2018 · 0 comments
Open

xen detection broken #19

stbuehler opened this issue Jan 22, 2018 · 0 comments

Comments

@stbuehler
Copy link

Using PVHVM (but was also broken with PV, just don't have the data anymore). Using packages from debian stable.

I know about #15, tried patching it locally - usually the output is Unknown, sometimes it picks Xen PV. When I tried fixing the sort locally the output is always Unknown.

Maybe http://www.brendangregg.com/blog/2014-05-09/xen-feature-detection.html is useful.

Bit 11 (0x800) in /sys/hypervisor/properties/features marks dom0 vs domU (when /sys/hypervisor/type is xen).

Intel(R) Xeon(R) CPU E5-2609 0 @ 2.40GHz

# imvirt -d
[...]
$VAR1 = {
          'Xen HVM 4.8' => '0.447761194029851',
          'Xen PV' => '0.537313432835821',
          'Physical' => '0.0149253731343284'
        };
[...]

# /usr/lib/imvirt/hvm
XenVMMXenVMM
# /usr/lib/imvirt/xen
HVM 4.8
# cat /sys/hypervisor/type
xen
# cat /sys/hypervisor/properties/features
00002705
# dmesg | grep 'Xen HVM'
[    0.000000] DMI: Xen HVM domU, BIOS 4.8.3-pre 11/25/2017
[    0.000000] Booting paravirtualized kernel on Xen HVM
[    0.000000] xen:events: Xen HVM callback vector for event delivery is enabled

Intel(R) Xeon(R) CPU E3-1220 V2 @ 3.10GHz

# imvirt -d
[...]
$VAR1 = {
          'Xen PV' => '0.556701030927835',
          'Physical' => '0.0103092783505155',
          'Xen HVM 4.8' => '0.43298969072165'
        };
[...]

# /usr/lib/imvirt/hvm 
XenVMMXenVMM
# /usr/lib/imvirt/xen
HVM 4.8
# cat /sys/hypervisor/type
xen
# cat /sys/hypervisor/properties/features
00002705
# dmesg | grep 'Xen HVM'
[    0.000000] DMI: Xen HVM domU, BIOS 4.8.3-pre 11/25/2017
[    0.000000] Booting paravirtualized kernel on Xen HVM
[    0.000000] xen:events: Xen HVM callback vector for event delivery is enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant