[SeaBIOS] [PATCH] paravirt: Allow both Red Hat and Amazon PCI HB subsystem vendor and device ids
Kevin O'Connor
kevin at koconnor.net
Fri Dec 8 16:50:31 CET 2017
On Sun, Nov 26, 2017 at 05:49:53PM +0100, Filippo Sironi wrote:
> Signed-off-by: Filippo Sironi <sironi at amazon.de>
> ---
> src/fw/paravirt.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/fw/paravirt.c b/src/fw/paravirt.c
> index 0770c47b12e7..163b70c6473f 100644
> --- a/src/fw/paravirt.c
> +++ b/src/fw/paravirt.c
> @@ -83,8 +83,8 @@ static void qemu_detect(void)
> u16 sv = pci_config_readw(0, PCI_SUBSYSTEM_VENDOR_ID);
> u16 sd = pci_config_readw(0, PCI_SUBSYSTEM_ID);
>
> - if (sv != 0x1af4 || /* Red Hat, Inc */
> - sd != 0x1100) /* Qemu virtual machine */
> + if (!(sv == 0x1af4 && sd == 0x1100) && /* Red Hat, Inc. QEMU VM */
> + !(sv == 0x1d0f && sd == 0x1237)) /* Amazon.com, Inc. i440fx VM */
> return;
Is the above needed for a generally available VM software or product?
Or is this internal to Amazon?
-Kevin
More information about the SeaBIOS
mailing list