30 points · by based2 · 9y ago · 11 comments
It accidentally failed to ignore operand size information from the instruction stream, which could lead to leaks of 32 or 96 bits of hypervisor memory contents to a guest.
The patch is pretty straight-forward:
if ( op_bytes == 8 )
+ {
host_and_vcpu_must_have(cx16);
- op_bytes *= 2;
+ op_bytes = 16;
+ }
+ else
+ op_bytes = 8;
I assume (didn't read the full code) that op_bytes came from the instruction stream.That said, those who believe the x86 instruction set is too complex do have one more argument now.
Another explanation is that some older x86 processors may not have full hardware virtualization support, so Xen emulates the instructions to support a wider number of host configurations.
I may be completely wrong though.
An other possible solution to similar problems is to complicate the CPU even further and have it virtualise the corner cases in hardware or microcode.
Anyway, I've done some digging and found an explanation here: https://insinuator.net/2015/02/the-dangers-of-x86-emulation-...
tl;dr: it falls back to emulation for very specific cases that cannot be handled by hardware-assisted virtualization
"The Intel Quark series processors are also affected by this bug. [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=738575]"