CPUID Question
Posted: Sat Aug 18, 2012 12:41 pm
Hi,
I'm working on dumping the features offered by the processor using CPUID and found something interesting with QEMU. CPUID function 0x01 returns with bit 31 set in ECX. The Intel Processor Identification and the CPUID Instruction guide (http://www.intel.com/content/www/us/en/ ... -note.html) [May, 2012] notes on page 30 that bit 31 is, "Not Used," and "Always returns 0." My Intel Instruction Set Reference [May, 2011] agrees. A more recent version (http://download.intel.com/products/proc ... 253666.pdf) [May, 2012] also agrees. Bochs does not return the same bit set.
My question is this: Is QEMU reporting some feature for which I have not yet found the documentation? Or is this bit used by QEMU to indicate that I am running in the QEMU emulator (and can I rely on that)?
Thanks for the help
I'm working on dumping the features offered by the processor using CPUID and found something interesting with QEMU. CPUID function 0x01 returns with bit 31 set in ECX. The Intel Processor Identification and the CPUID Instruction guide (http://www.intel.com/content/www/us/en/ ... -note.html) [May, 2012] notes on page 30 that bit 31 is, "Not Used," and "Always returns 0." My Intel Instruction Set Reference [May, 2011] agrees. A more recent version (http://download.intel.com/products/proc ... 253666.pdf) [May, 2012] also agrees. Bochs does not return the same bit set.
My question is this: Is QEMU reporting some feature for which I have not yet found the documentation? Or is this bit used by QEMU to indicate that I am running in the QEMU emulator (and can I rely on that)?
Thanks for the help