5.10 Merge window, part 1
5.10 Merge window, part 1
Posted Oct 17, 2020 4:53 UTC (Sat) by Cyberax (✭ supporter ✭, #52523)In reply to: 5.10 Merge window, part 1 by roc
Parent article: 5.10 Merge window, part 1
Posted Oct 17, 2020 11:40 UTC (Sat)
by mss (subscriber, #138799)
[Link] (6 responses)
Ohh, that's interesting.
Do you know whether they meant the current KVM nVMX implementation (which is tricky to get right with issues getting fixed all the time) or the VMX support itself in the CPU (as the expression "current CPUs" in your comment would suggest)?
Posted Oct 17, 2020 19:54 UTC (Sat)
by Cyberax (✭ supporter ✭, #52523)
[Link]
Posted Oct 18, 2020 16:05 UTC (Sun)
by pbonzini (subscriber, #60935)
[Link] (4 responses)
What follows is my guess on what things really look like. First, Amazon plays complicated games with /dev/mem and memremap for EC2 in order to save the price of "struct page" for guest memory (that's 1.5% so nothing to sneeze at), and that makes nested virtualization slower. Second, their kernel is probably based on older versions of Linux and thus it lacks a lot of the improvements made to nested virtualization lately. And finally, Amazon sells bare metal instances at a higher price so they have no interest in covering virtualization workloads.
Posted Oct 18, 2020 21:35 UTC (Sun)
by roc (subscriber, #30627)
[Link] (1 responses)
*Maybe* so much bug hunting has been done by people with variously-coloured hats, and so many bugs fixed, that this risk has been reduced to an acceptably low level. But if this has been done then I would expect some of those bugs to have been published, and I haven't seen that, not like we have for other attack surfaces.
Posted Oct 18, 2020 22:02 UTC (Sun)
by pbonzini (subscriber, #60935)
[Link]
Posted Oct 19, 2020 4:44 UTC (Mon)
by josh (subscriber, #17465)
[Link] (1 responses)
What's the nSVM-related errratum on AMD?
Posted Oct 19, 2020 9:25 UTC (Mon)
by pbonzini (subscriber, #60935)
[Link]
If the nested hypervisor is unlucky enough to place its VMCB at an address that the processor rejects, it will fail to enter the nested guest. There are various possible workarounds though (the simplest is to reduce the amount of memory below 4GB in the nested hypervisor to 1GB, because usually SMM TSeg is somewhere between 0x40000000 and 0xC0000000).
Apparently it's been there since the first SVM processors but we only noticed last year and it took a few months to find the root cause.
5.10 Merge window, part 1
5.10 Merge window, part 1
5.10 Merge window, part 1
5.10 Merge window, part 1
5.10 Merge window, part 1
5.10 Merge window, part 1
5.10 Merge window, part 1