Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 0d7d5f8

Browse files
committed
Fix for previous commit
1 parent b17faec commit 0d7d5f8

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

virtinst/CapabilitiesParser.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,17 +533,19 @@ def hw_virt_supported(self):
533533
self.host.features["svm"] == FEATURE_ON):
534534
return True
535535

536+
# Xen seems to block the vmx/svm feature bits from cpuinfo?
537+
# so make sure no hvm guests are listed
538+
if self._is_xen() and has_hvm_guests:
539+
return True
540+
536541
# If there is other features, but no virt bit, then HW virt
537542
# isn't supported
538543
if len(self.host.features.names()):
539544
return False
540545

541546
# Xen caps have always shown this info, so if we didn't find any
542547
# features, the host really doesn't have the necc support
543-
#
544-
# Although new xen seems to block the vmx/svm feature bits from
545-
# cpuinfo? so make sure no hvm guests are listed
546-
if self._is_xen() and not has_hvm_guests:
548+
if self._is_xen():
547549
return False
548550

549551
# Otherwise, we can't be sure, because there was a period for along

0 commit comments

Comments
 (0)