Project

General

Profile

Feature #2571

sepia: enable virtualization

Added by Sage Weil almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:

70%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

History

#1 Updated by Sage Weil almost 12 years ago

  • translation missing: en.field_position deleted (1)
  • translation missing: en.field_position set to 11

#2 Updated by Sage Weil almost 12 years ago

  • Target version set to v0.49
  • translation missing: en.field_position deleted (24)
  • translation missing: en.field_position set to 1313

#3 Updated by Josh Durgin almost 12 years ago

  • Assignee set to Dan Mick

#4 Updated by Dan Mick almost 12 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 70

BIOS settings changed on all plana; one reboot test shows good results. One can tell if
virtualization is enabled with:

#!/usr/bin/env python
import struct, os

os.system('modprobe msr')
f = open('/dev/cpu/0/msr')
f.seek(58)
msr = struct.unpack('q', f.read(8))[0]
msr &= 7
f.close()
print("VMX control bits: {:b}b".format(msr))
print("BIOS locked: {}".format("yes" if msr & 1 else "no"))
print("VMX enabled in SMX: {}".format("yes" if msr & 2 else "no"))
print("VMX enabled outside SMX: {}".format("yes" if msr & 4 else "no"))

#5 Updated by Dan Mick almost 12 years ago

  • Status changed from In Progress to Resolved

Also available in: Atom PDF