Also set fp regs
authorLauri Kasanen <cand@gmx.com>
Thu, 27 May 2021 15:16:30 +0000 (18:16 +0300)
committerLauri Kasanen <cand@gmx.com>
Thu, 27 May 2021 15:16:30 +0000 (18:16 +0300)
main.c

diff --git a/main.c b/main.c
index f3e382f49c3635666fd6673296ab682b0f0ae2dd..0ace48812d8afaffba0ce87acba3cee77e01a06f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -358,6 +358,8 @@ int main(int argc, char **argv) {
 
        if (ioctl(vcpu, KVM_SET_REGS, &regs) == -1)
                abort();
+       if (ioctl(vcpu, KVM_SET_FPU, &fpregs) == -1)
+               abort();
 
        const struct kvm_guest_debug dbg = {
                .control = KVM_GUESTDBG_ENABLE | KVM_GUESTDBG_SINGLESTEP