mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-05 10:47:23 -05:00
Added support pvspinlock in features
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
Cole Robinson
parent
3eaa59dc95
commit
d7e678cb28
@@ -250,6 +250,10 @@ Enable hypver VAPIC, but disable spinlocks
|
||||
|
||||
Allow the KVM hypervisor signature to be hidden from the guest
|
||||
|
||||
=item B<--features pvspinlock=on>
|
||||
|
||||
Notify the guest that the host supports paravirtual spinlocks for example by exposing the pvticketlocks mechanism.
|
||||
|
||||
=back
|
||||
|
||||
Use --features=? to see a list of all available sub options. Complete details at L<http://libvirt.org/formatdomain.html#elementsFeatures>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<kvm>
|
||||
<hidden state="on"/>
|
||||
</kvm>
|
||||
<pvspinlock state="on"/>
|
||||
</features>
|
||||
<numatune>
|
||||
<memory nodeset="2,4,6"/>
|
||||
|
||||
@@ -163,6 +163,7 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("hyperv_spinlocks_retries", 12287, 54321)
|
||||
check("vmport", False, True)
|
||||
check("kvm_hidden", None, True)
|
||||
check("pvspinlock", None, True)
|
||||
|
||||
check = self._make_checker(guest.cpu)
|
||||
check("match", "exact", "strict")
|
||||
|
||||
@@ -1519,6 +1519,7 @@ class ParserFeatures(VirtCLIParser):
|
||||
|
||||
self.set_param("vmport", "vmport", is_onoff=True)
|
||||
self.set_param("kvm_hidden", "kvm_hidden", is_onoff=True)
|
||||
self.set_param("pvspinlock", "pvspinlock", is_onoff=True)
|
||||
|
||||
|
||||
###################
|
||||
|
||||
@@ -50,3 +50,4 @@ class DomainFeatures(XMLBuilder):
|
||||
vmport = XMLProperty("./vmport/@state", is_onoff=True,
|
||||
default_name="default", default_cb=lambda s: False)
|
||||
kvm_hidden = XMLProperty("./kvm/hidden/@state", is_onoff=True)
|
||||
pvspinlock = XMLProperty("./pvspinlock/@state", is_onoff=True)
|
||||
|
||||
Reference in New Issue
Block a user