From ec4c07459fef0fa929d4f1ccfe7abbbd26a33919 Mon Sep 17 00:00:00 2001 From: gaojiazhen Date: Mon, 4 Sep 2023 11:47:51 +0000 Subject: [PATCH] update target/i386/kvm.c. Provide a solution strategy for the mismatch issue between amd CPU and QEMU-2.12.0 version Signed-off-by: gaojiazhen --- target/i386/kvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 19e6aa320d..b2676d9702 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -1905,6 +1905,7 @@ static int kvm_put_msrs(X86CPU *cpu, int level) struct kvm_msr_entry *e = &cpu->kvm_msr_buf->entries[ret]; error_report("error: failed to set MSR 0x%" PRIx32 " to 0x%" PRIx64, (uint32_t)e->index, (uint64_t)e->data); + error_report("If your machine is using an AMD CPU, you can consider creating a qemu-system-x86.conf configuration file in the path/etc/modprobe. d, with the following content: options kvm ignore_msrs=1"); } assert(ret == cpu->kvm_msr_buf->nmsrs); -- Gitee