Change in vdsm[master]: cpuinfo: add predicates for x86 and ppc platform detection

nsoffer at redhat.com nsoffer at redhat.com
Thu Jan 7 19:39:59 UTC 2016


Nir Soffer has submitted this change and it was merged.

Change subject: cpuinfo: add predicates for x86 and ppc platform detection
......................................................................


cpuinfo: add predicates for x86 and ppc platform detection

Previously we used string (to check for x86_64) and tuple (for ppc64 and
ppc64le). This patch adds two predicates to the Architecture class of
caps module:

* is_x86(arch)
* is_ppc(arch)

These classmethods can be used to determine in which class does given
'arch' argument belong - allowing us to query architecture in
consistent and unified way.

Change-Id: I0981367436ddfbfabfd3484019b96831e31f9609
Signed-off-by: Martin Polednik <mpolednik at redhat.com>
Reviewed-on: https://gerrit.ovirt.org/50894
Continuous-Integration: Jenkins CI
Reviewed-by: Vinzenz Feenstra <vfeenstr at redhat.com>
Reviewed-by: Francesco Romani <fromani at redhat.com>
---
M vdsm/caps.py
M vdsm/supervdsmServer
M vdsm/virt/vm.py
M vdsm/virt/vmxml.py
4 files changed, 28 insertions(+), 21 deletions(-)

Approvals:
  Jenkins CI: Passed CI tests
  Vinzenz Feenstra: Looks good to me, but someone else must approve
  Francesco Romani: Looks good to me, approved
  Martin Polednik: Verified



-- 
To view, visit https://gerrit.ovirt.org/50894
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0981367436ddfbfabfd3484019b96831e31f9609
Gerrit-PatchSet: 4
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Martin Polednik <mpolednik at redhat.com>
Gerrit-Reviewer: Francesco Romani <fromani at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Polednik <mpolednik at redhat.com>
Gerrit-Reviewer: Nir Soffer <nsoffer at redhat.com>
Gerrit-Reviewer: Vinzenz Feenstra <vfeenstr at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>


More information about the vdsm-patches mailing list