WCharacter / RDTSC-KVM-Handler

my patches for linux kernel to spoof rdtsc and make vm exit undetected
209 stars 27 forks source link

using qemu:arg causes windows 10 vm to refuse to boot #6

Closed Kaydax closed 2 years ago

Kaydax commented 2 years ago

I got the kernel to compile (Linux Kernel 5.14.11) with little modification. The issue is now is the fact that the vm refuses to boot when i do anything with qemu:arg. Do you know any reason as to why or can point me in the right direction as to fixing this?

Kaydax commented 2 years ago

Turns out that kvm hyper-v stuff was just not enabled, even though it was in the xml file. Passing it into the qemu:arg stuff seems to fix the issue:

<qemu:commandline>
    <qemu:arg value="-cpu"/>
    <qemu:arg value="host,hv_relaxed,hv_vapic,hv_spinlocks=8191,hv_vpindex,hv_runtime,hv_synic,hv_stimer,hv_stimer,hv_reset,hv_time,hv_frequencies,rdtscp=off,kvm=off,hv_vendor_id=null,-hypervisor"/>
</qemu:commandline>