All of lore.kernel.org
 help / color / mirror / Atom feed
* x86info: dump kvm cpuid's
@ 2012-04-29 10:10 Michael S. Tsirkin
  2012-04-30  8:43 ` Gleb Natapov
  0 siblings, 1 reply; 9+ messages in thread
From: Michael S. Tsirkin @ 2012-04-29 10:10 UTC (permalink / raw)
  To: davej, kvm, gleb

The following makes 'x86info -r' dump kvm cpu ids
(signature+features) when running in a vm.

On the guest we see the signature and the features:
eax in: 0x40000000, eax = 00000000 ebx = 4b4d564b ecx = 564b4d56 edx = 0000004d
eax in: 0x40000001, eax = 0100007b ebx = 00000000 ecx = 00000000 edx = 00000000

On the host it just adds a couple of zero lines:
eax in: 0x40000000, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000
eax in: 0x40000001, eax = 00000000 ebx = 00000000 ecx = 00000000 edx = 00000000

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

---

Dave - not sure whether there's a mailing list for x86info.
The patch is on top of the master branch in
git://git.codemonkey.org.uk/x86info.git

Thanks!

diff --git a/x86info.c b/x86info.c
index 22c4734..dee5ed1 100644
--- a/x86info.c
+++ b/x86info.c
@@ -44,6 +44,7 @@ static void display_detailed_info(struct cpudata *cpu)
 
 		if (cpu->maxei2 >=0xC0000000)
 			dump_raw_cpuid(cpu->number, 0xC0000000, cpu->maxei2);
+		dump_raw_cpuid(cpu->number, 0x40000000, 0x40000001);
 	}
 
 	if (show_cacheinfo) {

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-05-01 12:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-29 10:10 x86info: dump kvm cpuid's Michael S. Tsirkin
2012-04-30  8:43 ` Gleb Natapov
2012-04-30  9:38   ` Michael S. Tsirkin
2012-04-30  9:41     ` Gleb Natapov
2012-05-01 10:29     ` [Xen-devel] " Ian Campbell
2012-05-01 10:50       ` Michael S. Tsirkin
2012-05-01 12:17         ` Ian Campbell
2012-05-01 12:17         ` Ian Campbell
2012-05-01 10:50       ` Michael S. Tsirkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.