Vinzenz Feenstra has uploaded a new change for review. Change subject: agent: Add new command setNumberOfCPUs(count) ......................................................................
agent: Add new command setNumberOfCPUs(count) Change-Id: I330f789eee9e5b7a457bc6defa744c0a6cd6c399 Guest-Agent-API-Version: 1 Signed-off-by: Vinzenz Feenstra <[email protected]> --- M vdsm/virt/guestagent.py 1 file changed, 6 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/31/26531/1 diff --git a/vdsm/virt/guestagent.py b/vdsm/virt/guestagent.py index 5098da1..31c0a26 100644 --- a/vdsm/virt/guestagent.py +++ b/vdsm/virt/guestagent.py @@ -33,7 +33,8 @@ _MAX_SUPPORTED_API_VERSION = 1 _IMPLICIT_API_VERSION_ZERO = 0 -_MESSAGE_API_VERSION_LOOKUP = {} +_MESSAGE_API_VERSION_LOOKUP = { + 'set-number-of-cpus': 1} __REPLACEMENT_CHAR = u'\ufffd' __RESTRICTED_CHARS = set(range(8 + 1)). \ @@ -386,6 +387,10 @@ except: self.log.error("sendHcCmdToDesktop failed", exc_info=True) + def setNumberOfCPUs(self, count): + self.log.debug("setNumberOfCPUs('%d') called", count) + self._forward('set-number-of-cpus', {'count': count}) + @staticmethod def _onChannelTimeout(self): self.guestInfo['memUsage'] = 0 -- To view, visit http://gerrit.ovirt.org/26531 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I330f789eee9e5b7a457bc6defa744c0a6cd6c399 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Vinzenz Feenstra <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
