]> Git Repo - qemu.git/commit
target/i386: Fix VM migration when interrupt based APF is enabled
authorVitaly Kuznetsov <[email protected]>
Thu, 17 Sep 2020 10:23:16 +0000 (12:23 +0200)
committerPaolo Bonzini <[email protected]>
Wed, 30 Sep 2020 17:11:36 +0000 (19:11 +0200)
commit6615be072dbb88d306cd1647c7c7b694682bac5e
tree12086ddb92686f79723ed2e8369607b0874b6249
parent56bf1c4985fb9ad24642f176cc40db0eb4f3dc31
target/i386: Fix VM migration when interrupt based APF is enabled

VM with  interrupt based APF enabled fails to migrate:
qemu-system-x86_64: error: failed to set MSR 0x4b564d02 to 0xf3

We have two issues:
1) There is a typo in kvm_put_msrs() and we write async_pf_int_msr
to MSR_KVM_ASYNC_PF_EN (instead of MSR_KVM_ASYNC_PF_INT)

2) We restore MSR_KVM_ASYNC_PF_EN before MSR_KVM_ASYNC_PF_INT is set
and this violates the check in KVM.

Re-order MSR_KVM_ASYNC_PF_EN/MSR_KVM_ASYNC_PF_INT setting (and
kvm_get_msrs() for consistency) and fix the typo.

Signed-off-by: Vitaly Kuznetsov <[email protected]>
Message-Id: <20200917102316[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
target/i386/kvm.c
This page took 0.026738 seconds and 4 git commands to generate.