summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-24 13:50:27 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-24 14:17:08 +0000
commitaeea803ad0fafe1ed4c7f8e781dfe4fdc150cac0 (patch)
treea5d9276e1a31ad06a5db04fcdd6217865dd66360 /contrib
parent62895440bc13abe1bc7dbccf9f8b412f16d16a7d (diff)
downloadlibguestfs-aeea803ad0fafe1ed4c7f8e781dfe4fdc150cac0.tar.gz
libguestfs-aeea803ad0fafe1ed4c7f8e781dfe4fdc150cac0.tar.xz
libguestfs-aeea803ad0fafe1ed4c7f8e781dfe4fdc150cac0.zip
appliance: Pass lpj=... on the appliance command line (thanks Marcelo Tosatti).
Try to get the host's loops_per_jiffy value and pass this on the command line to the guest. In theory this should avoid the appliance having to recalculate this value in a VM with TCG (which is generally error-prone). This should avoid timing issues. We only do this when we are certain that the guest will be TCG. Currently we only have enough information to do this from the libvirt attach-method. So mostly this will only affect people using Fedora in a VM. The host loops_per_jiffy value is not exported by the kernel. It is only printed by the kernel early during boot, so if boot messages have "scrolled off" the kernel ring buffer, it won't be available. Some operating systems save early kernel messages in /var/log/dmesg but (a) Fedora 18+ seem to have abandoned this file and (b) on Ubuntu this file is unreadable for spurious "security" reasons. I have submitted a patch to make lpj available through /proc/cpuinfo.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions