On Mo, 2013-09-16 at 14:10 +0300, Gleb Natapov wrote:
On Mon, Sep 16, 2013 at 12:36:28PM +0200, Gerd Hoffmann wrote:
This patch adds support for detecting whenever SeaBIOS runs on qemu or not. This is done by looking at the northbridge (pci device 00:00.0) and check the subsystem id. Most pci devices emulated by qemu -- the two northbridges i440fx and q35 included -- have a subsystem id of "1af4:1100".
In case the subsystem ID matches set PF_QEMU, log a message (including the northbridge found while being at it) and also check for kvm.
What if other userspace will want to write enough support to run Seabios as a guest? Why kvm detection depends on QEMU?
What other userspace? There is none today. And if that changes some day we'll just call kvm_detect() in the init code for $otheruserspace.
cheers, gerd