[SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-16 Thread Gerd Hoffmann
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

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-16 Thread Gleb Natapov
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

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-16 Thread Gerd Hoffmann
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

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-16 Thread Gerd Hoffmann
On Mo, 2013-09-16 at 15:34 +0300, Gleb Natapov wrote: On Mon, Sep 16, 2013 at 02:27:37PM +0200, Gerd Hoffmann wrote: 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

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-16 Thread Gleb Natapov
On Mon, Sep 16, 2013 at 03:14:45PM +0200, Gerd Hoffmann wrote: On Mo, 2013-09-16 at 15:34 +0300, Gleb Natapov wrote: On Mon, Sep 16, 2013 at 02:27:37PM +0200, Gerd Hoffmann wrote: On Mo, 2013-09-16 at 14:10 +0300, Gleb Natapov wrote: On Mon, Sep 16, 2013 at 12:36:28PM +0200, Gerd

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-16 Thread Kevin O'Connor
On Mon, Sep 16, 2013 at 07:58:42PM +0300, Gleb Natapov wrote: On Mon, Sep 16, 2013 at 03:14:45PM +0200, Gerd Hoffmann wrote: That is a purely theoretical thing. In practice seabios mist likely has to be changed for one or another reason. It's not have to be this way if Seabios would

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-06 Thread Laszlo Ersek
On 09/06/13 02:45, Kevin O'Connor wrote: On Wed, Sep 04, 2013 at 08:13:56AM +0200, Gerd Hoffmann wrote: I'd like to do this as early as possible, because one of the things this enables is logging via qemu debug port (CONFIG_DEBUG_IO). Good point. Also note that preinit has a

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-06 Thread Gerd Hoffmann
On Fr, 2013-09-06 at 14:32 +0200, Laszlo Ersek wrote: On 09/06/13 02:45, Kevin O'Connor wrote: On Wed, Sep 04, 2013 at 08:13:56AM +0200, Gerd Hoffmann wrote: I'd like to do this as early as possible, because one of the things this enables is logging via qemu debug port (CONFIG_DEBUG_IO).

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-04 Thread Gerd Hoffmann
On Di, 2013-09-03 at 21:28 -0400, Kevin O'Connor wrote: On Tue, Sep 03, 2013 at 02:37:41PM +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.

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-04 Thread Gleb Natapov
On Tue, Sep 03, 2013 at 02:37:41PM +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

Re: [SeaBIOS] [PATCH 1/3] Add generic qemu detection

2013-09-03 Thread Kevin O'Connor
On Tue, Sep 03, 2013 at 02:37:41PM +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