mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
TSC tolerance patch, CPU-line fixes, ...
This commit is contained in:
parent
3b6c1fd11d
commit
84b0a624cd
6 changed files with 48 additions and 5 deletions
|
|
@ -59,7 +59,13 @@ for task in /proc/$QEMU_PID/task/*; do
|
|||
case $TASKNAME in
|
||||
worker | qemu-system-*)
|
||||
echo worker is $TASKNAME
|
||||
;;
|
||||
;;
|
||||
IO*)
|
||||
regex="IO iothread([0-9]*)"
|
||||
if [[ $TASKNAME =~ $regex ]]; then
|
||||
chrt -f -p 1 $TASK
|
||||
fi
|
||||
;;
|
||||
CPU*)
|
||||
regex="CPU ([0-9]*)/KVM"
|
||||
if [[ $TASKNAME =~ $regex ]]; then
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ writeShellScriptBin "win10-vm" ''
|
|||
-blockdev '{"node-name":"libvirt-pflash1-format","read-only":false,"driver":"raw","file":"libvirt-pflash1-storage"}' \
|
||||
-machine pc-q35-5.1,accel=kvm,usb=off,vmport=off,dump-guest-core=off,pflash0=libvirt-pflash0-format,pflash1=libvirt-pflash1-format \
|
||||
-monitor stdio \
|
||||
-cpu host,migratable=no,+invtsc,topoext=on,hv-time,hv-vpindex,hv-relaxed,hv-vapic,-amd-stibp,hv-synic,hv-spinlocks=0x1fff,host-cache-info=on,l3-cache=off -m 12288 \
|
||||
-cpu host,migratable=no,topoext=on,host-cache-info=on,+invtsc,hv_time,hv_relaxed,hv_vpindex,hv_synic,hv_spinlocks=0x1fff,hv_vendor_id=ab12341234ab$,hv_vapic,-amd-stibp \
|
||||
-m 12288 \
|
||||
-mem-path /dev/hugepages1G/qemu-win10-vm -mem-prealloc \
|
||||
-smp 8,sockets=1,dies=1,cores=4,threads=2 \
|
||||
-object iothread,id=iothread1 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue