Skip to content

Commit fab81c3

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "libvirt: Stop unconditionally enabling evmcs" into stable/2023.1
2 parents 47271bb + 2bffc53 commit fab81c3

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

nova/tests/unit/virt/libvirt/test_driver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27884,7 +27884,10 @@ def test_set_features_windows(self):
2788427884
self.assertFalse(hv.reenlightenment)
2788527885
self.assertTrue(hv.tlbflush)
2788627886
self.assertTrue(hv.ipi)
27887-
self.assertTrue(hv.evmcs)
27887+
# NOTE(artom) evmcs only works on Intel hosts, so we can't enable it
27888+
# unconditionally. Until we become smarter about it, just don't enable
27889+
# it at all. See bug 2009280.
27890+
self.assertFalse(hv.evmcs)
2788827891

2788927892

2789027893
class LibvirtVolumeUsageTestCase(test.NoDBTestCase):

nova/virt/libvirt/driver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6193,7 +6193,6 @@ def _set_features(self, guest, os_type, image_meta, flavor):
61936193
hv.frequencies = True
61946194
hv.tlbflush = True
61956195
hv.ipi = True
6196-
hv.evmcs = True
61976196

61986197
# NOTE(kosamara): Spoofing the vendor_id aims to allow the nvidia
61996198
# driver to work on windows VMs. At the moment, the nvidia driver
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
fixes:
3+
- |
4+
Bug 2009280 has been fixed by no longer enabling the evmcs enlightenment in
5+
the libvirt driver. evmcs only works on Intel CPUs, and domains with that
6+
enlightenment cannot be started on AMD hosts. There is a possible future
7+
feature to enable support for generating this enlightenment only when
8+
running on Intel hosts.

0 commit comments

Comments
 (0)