Bug 1426566 - kvm_amd nested virtualization not detected
Summary: kvm_amd nested virtualization not detected
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.19.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ovirt-4.2.0
: 4.20.4
Assignee: Miguel Martin
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-24 10:33 UTC by Miguel Martin
Modified: 2017-12-20 10:43 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 10:43:35 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 73030 0 master MERGED vdsm: fix kvm_amd nested virtualization detection 2017-05-17 12:38:31 UTC

Description Miguel Martin 2017-02-24 10:33:49 UTC
Description of problem:
Nested virtualization on AMD Hardware is never detected.

Version-Release number of selected component (if applicable):
All (At least since 4.19.4)

How reproducible:
Always

Steps to Reproduce:
1. Install vdsm nestedvt hook in AMD host
2. Reboot the host
3. Check nestedvt is activated on OS level:

   cat /sys/module/kvm_amd/parameters/nested 
   1

4. Execute the following python command:

   python -c 'from vdsm.osinfo import nested_virtualization; print nested_virtualization()'

Actual results:
NestedVirtualization(False, None)

Expected results:
NestedVirtualization(enabled=True, kvm_module='kvm_amd')

Comment 1 Yaniv Kaul 2017-10-15 09:21:51 UTC
Patch was merged long time ago, moving to MODIFIED (I hope no additional patches are needed?)

Comment 2 Israel Pinto 2017-10-19 09:27:30 UTC
Verify with:
Kernel Version:3.10.0 - 693.5.2.el7.x86_64
KVM Version:2.9.0 - 16.el7_4.5.1
LIBVIRT Version:libvirt-3.2.0-14.el7_4.3
VDSM Version:vdsm-4.20.3-205.git15d3b78.el7.centos


Run the steps in comment 1:
output:
#cat /sys/module/kvm_amd/parameters/nested
1
# python -c 'from vdsm.osinfo import nested_virtualization; print nested_virtualization()'
NestedVirtualization(enabled=True, kvm_module='kvm_amd')

Comment 3 Sandro Bonazzola 2017-12-20 10:43:35 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.