Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 704423 Details for
Bug 916589
Failed to install Host ovirt-node. Failed to execute stage 'Setup validation': [Errno 5] Input/output error.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
msr.py
msr.py (text/plain), 1.39 KB, created by
Alon Bar-Lev
on 2013-03-02 07:10:25 UTC
(
hide
)
Description:
msr.py
Filename:
MIME Type:
Creator:
Alon Bar-Lev
Created:
2013-03-02 07:10:25 UTC
Size:
1.39 KB
patch
obsolete
>#!/usr/bin/python > >import os >import struct >import traceback > >class test(object): > def _prdmsr(self, cpu, index): > ret = -1 > > msr = '/dev/cpu/%d/msr' % cpu > if not os.path.exists(msr): > raise AttributeError('No %s' % msr) > with open(msr, 'r') as f: > try: > f.seek(index) > ret = struct.unpack('L', f.read(8))[0] > except struct.error: > pass > > print('prdmsr: %s' % ret) > return ret > > def _vmx_enabled_by_bios(self): > MSR_IA32_FEATURE_CONTROL = 0x3a > MSR_IA32_FEATURE_CONTROL_LOCKED = 0x1 > MSR_IA32_FEATURE_CONTROL_VMXON_ENABLED = 0x4 > > msr = self._prdmsr(0, MSR_IA32_FEATURE_CONTROL) > ret = ( > msr & ( > MSR_IA32_FEATURE_CONTROL_LOCKED | > MSR_IA32_FEATURE_CONTROL_VMXON_ENABLED > ) > ) != MSR_IA32_FEATURE_CONTROL_LOCKED > > print('vmx bios: %s' % ret) > return ret > > def _svm_enabled_by_bios(self): > 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 > print('svm bios: %s' % ret) > return ret > >t = test() >print('vmx') >try: > t._vmx_enabled_by_bios() >except: > traceback.print_exc() >print('svm') >try: > t._svm_enabled_by_bios() >except: > traceback.print_exc()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 916589
:
703888
|
703889
|
703901
| 704423