From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
Marcelo Tosatti <mtosatti@redhat.com>,
kvm@vger.kernel.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: [PATCH v2 1/2] [debug] log kvm supported cpuid
Date: Tue, 5 Mar 2024 11:52:32 +0100 [thread overview]
Message-ID: <20240305105233.617131-2-kraxel@redhat.com> (raw)
In-Reply-To: <20240305105233.617131-1-kraxel@redhat.com>
---
target/i386/kvm/kvm.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/target/i386/kvm/kvm.c b/target/i386/kvm/kvm.c
index 42970ab046fa..7298822cb511 100644
--- a/target/i386/kvm/kvm.c
+++ b/target/i386/kvm/kvm.c
@@ -276,6 +276,20 @@ static struct kvm_cpuid2 *try_get_cpuid(KVMState *s, int max)
exit(1);
}
}
+
+ {
+ int i;
+
+ for (i = 0; i < cpuid->nent; i++) {
+ fprintf(stderr, "cpuid: %8x/%d - %8x %8x %8x %8x\n",
+ cpuid->entries[i].function,
+ cpuid->entries[i].index,
+ cpuid->entries[i].eax,
+ cpuid->entries[i].ebx,
+ cpuid->entries[i].ecx,
+ cpuid->entries[i].edx);
+ }
+ }
return cpuid;
}
--
2.44.0
next prev parent reply other threads:[~2024-03-05 10:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-05 10:52 [PATCH v2 0/2] kvm: add support for guest physical bits Gerd Hoffmann
2024-03-05 10:52 ` Gerd Hoffmann [this message]
2024-03-05 10:54 ` [PATCH v2 1/2] [debug] log kvm supported cpuid Gerd Hoffmann
2024-03-05 10:52 ` [PATCH v2 2/2] kvm: add support for guest physical bits Gerd Hoffmann
2024-03-08 5:47 ` Xiaoyao Li
2024-03-11 10:55 ` Paolo Bonzini
2024-03-11 11:59 ` Gerd Hoffmann
2024-03-11 13:28 ` Paolo Bonzini
2024-03-13 6:39 ` Tao Su
2024-03-13 8:15 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240305105233.617131-2-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thomas.lendacky@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).