Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1426566

Summary: kvm_amd nested virtualization not detected
Product: [oVirt] vdsm Reporter: Miguel Martin <mmartinv>
Component: CoreAssignee: Miguel Martin <mmartinv>
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.19.4CC: bugs, michal.skrivanek, rhodain
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
rule-engine: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Target Release: 4.20.4   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 10:43:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.