[vbox-dev] e e$ o< Re: update the patch--patch for " Shanghai " cpu can't use virtualbox

valdis.kletnieks at vt.edu valdis.kletnieks at vt.edu
Wed Dec 26 02:11:39 GMT 2018


On Mon, 24 Dec 2018 12:40:56 +0200, Alexey Eromenko said:
> Why is the code for CPU VENDOR detection even exists in the first place?
> Isn't it easier to detect ONLY CPU capabilities (such as Intel VT-x /
> AMD-V ), rather than CPU vendors ?
> This would solve problems for future x86 CPU vendors, that could pop-up.

Look around in the kernel tree in arch/x86/kernel for all sorts of
AMD and Intel specific code that would be very painful if they were
called on the wrong hardware.  There's a lot of bits in CPUID leaves
and other places that aren't safe to interpret without knowing the
vendor....



More information about the vbox-dev mailing list