Added support pvspinlock in features

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde
2015-10-05 15:14:34 -04:00
committed by Cole Robinson
parent 3eaa59dc95
commit d7e678cb28
5 changed files with 8 additions and 0 deletions
+4
View File
@@ -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>
+1
View File
@@ -24,6 +24,7 @@
<kvm>
<hidden state="on"/>
</kvm>
<pvspinlock state="on"/>
</features>
<numatune>
<memory nodeset="2,4,6"/>
+1
View File
@@ -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")
+1
View File
@@ -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)
###################
+1
View File
@@ -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)