processor type in VMware

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
extremecoder
Member
Member
Posts: 59
Joined: Tue May 23, 2006 11:00 pm

processor type in VMware

Post by extremecoder »

I am working on cpuid instruction and testing the code in VMWare ...

i am using cpuid.eax = 1, in order to identify processor type, family ... when I set the guest OS for both Single and Dual Processor, I am getting the eax = 6F8 which is a 13 bit value ...

how does it returns only 13 bit value ? is this becoz I am trying in VM ?
jal
Member
Member
Posts: 1385
Joined: Wed Oct 31, 2007 9:09 am

Re: processor type in VMware

Post by jal »

extremecoder wrote:when I set the guest OS for both Single and Dual Processor, I am getting the eax = 6F8 which is a 13 bit value ... how does it returns only 13 bit value ? is this becoz I am trying in VM ?
Your assumption that it must return more than 13 bits is wrong. The upper bits are used for 'extended family' and 'extended model', and are 0 for almost al Intel processors. Check this PDF for reference.


JAL
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: processor type in VMware

Post by NickJohnson »

Well, I think the point is that it is really returning 32 bits, but the upper 19 of them are zeroes. Your printk/printf function must remove leading zeroes, which isn't a problem, but numbers won't always have eight hex digits.
Post Reply