Alon Bar-Lev has uploaded a new change for review.

Change subject: -vdsm: hardware: cleanup
......................................................................

-vdsm: hardware: cleanup

Change-Id: I753ce4a301d227400b2477e9bc4043eb3d8cc35d
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M src/plugins/ovirt-host-deploy/vdsm/hardware.py
1 file changed, 6 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-host-deploy 
refs/changes/66/12766/1

diff --git a/src/plugins/ovirt-host-deploy/vdsm/hardware.py 
b/src/plugins/ovirt-host-deploy/vdsm/hardware.py
index 31117c4..6c5a348 100644
--- a/src/plugins/ovirt-host-deploy/vdsm/hardware.py
+++ b/src/plugins/ovirt-host-deploy/vdsm/hardware.py
@@ -123,9 +123,8 @@
         MSR_IA32_FEATURE_CONTROL_LOCKED = 0x1
         MSR_IA32_FEATURE_CONTROL_VMXON_ENABLED = 0x4
 
-        msr = self._prdmsr(0, MSR_IA32_FEATURE_CONTROL)
         ret = (
-            msr & (
+            self._prdmsr(0, MSR_IA32_FEATURE_CONTROL) & (
                 MSR_IA32_FEATURE_CONTROL_LOCKED |
                 MSR_IA32_FEATURE_CONTROL_VMXON_ENABLED
             )
@@ -138,8 +137,11 @@
         SVM_VM_CR_SVM_DISABLE = 4
         MSR_VM_CR = 0xc0010114
 
-        vm_cr = self._prdmsr(0, MSR_VM_CR)
-        ret = (vm_cr & (1 << SVM_VM_CR_SVM_DISABLE)) == 0
+        ret = (
+            self._prdmsr(0, MSR_VM_CR) &
+            (1 << SVM_VM_CR_SVM_DISABLE)
+        ) == 0
+
         self.logger.debug('svm bios: %s', ret)
         return ret
 


--
To view, visit http://gerrit.ovirt.org/12766
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I753ce4a301d227400b2477e9bc4043eb3d8cc35d
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-host-deploy
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to