feat(cpuid): automate the passthrough toggle around enabled guests
This commit is contained in:
@@ -814,12 +814,12 @@ if [ "$PROFILE" = full ]; then
|
||||
[ "$ok" = 1 ] && echo "patched QEMU and KVM modules both in place."
|
||||
if [ -n "$MODEL" ] && [ -f /sys/module/kvm_amd/parameters/cpuid_passthrough ]; then
|
||||
echo
|
||||
echo "The TIMER check needs CPUID passthrough, which is off by default and must be"
|
||||
echo "switched on AFTER the guest has booted (it hangs a booting guest). Once the"
|
||||
echo "guest is up, on the host:"
|
||||
echo "The TIMER check needs CPUID passthrough, which must be off while the guest cold"
|
||||
echo "boots and on once it is up. Let the hook handle that around this guest:"
|
||||
echo " sudo vm-native-cpuid enable $DOM"
|
||||
echo "Or drive it by hand, after the guest has booted, on the host:"
|
||||
echo " echo '$MODEL' | sudo tee /sys/module/kvm_amd/parameters/brand_string"
|
||||
echo " echo Y | sudo tee /sys/module/kvm_amd/parameters/cpuid_passthrough"
|
||||
echo "Switch it off again (echo N) before rebooting the guest."
|
||||
echo " echo Y | sudo tee /sys/module/kvm_amd/parameters/cpuid_passthrough # N again before the next boot"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user