Change in vdsm[master]: guestIF: Adding support for setting vcpus online/offline
vfeenstr at redhat.com
vfeenstr at redhat.com
Wed Mar 5 10:26:49 UTC 2014
Vinzenz Feenstra has uploaded a new change for review.
Change subject: guestIF: Adding support for setting vcpus online/offline
......................................................................
guestIF: Adding support for setting vcpus online/offline
Change-Id: I27a9853a21e6efaf2bdabd3fea2601a55ee106a3
Signed-off-by: Vinzenz Feenstra <vfeenstr at redhat.com>
---
M vdsm/guestIF.py
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/77/25377/1
diff --git a/vdsm/guestIF.py b/vdsm/guestIF.py
index 9a272c8..11bbe12 100644
--- a/vdsm/guestIF.py
+++ b/vdsm/guestIF.py
@@ -30,7 +30,8 @@
_IMPLICIT_API_VERSION_ZERO = 0
_MESSAGE_API_VERSION_LOOKUP = {
- 'cpu-topology': 1}
+ 'cpu-topology': 1,
+ 'control-vcpu': 1}
__REPLACEMENT_CHAR = u'\ufffd'
__RESTRICTED_CHARS = set(range(8 + 1)). \
@@ -388,6 +389,15 @@
except Exception:
self.log.exception('refreshCpuInfo failed')
+ def controlVCpu(self, online, offline):
+ try:
+ self.log.debug('controlVCpu called online=%s offline=%s', online,
+ offline)
+ self._forward('control-vcpu', {'online': online,
+ 'offline': offline})
+ except (GuestAgentUnsupportedMessage, socket.error):
+ self.log.exception('controlVCpu failed')
+
def sendHcCmdToDesktop(self, cmd):
try:
self.log.debug("sendHcCmdToDesktop('%s')" % (cmd))
--
To view, visit http://gerrit.ovirt.org/25377
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I27a9853a21e6efaf2bdabd3fea2601a55ee106a3
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Vinzenz Feenstra <vfeenstr at redhat.com>
More information about the vdsm-patches
mailing list