Il 28/05/2013 14:28, Amos Kong ha scritto:
> Bootindex string passed from qemu:
>  /q35-pcihost@i0cf8/ethernet@2/ethernet-phy@0
> 
> We match pci domain by "/pci@i0cf8" in SeaBIOS, but fw_dev_path prefix
> of q35 is "/q35-pcihost@i0cf8". So bootindex in qemu commandline
> doesn't work if it uses q35 machine type.
> 
> This patch fixes the pattern to match both original pc-i440fx & q35
> 
> Signed-off-by: Amos Kong <ak...@redhat.com>

Reviewed-by: Paolo Bonzini <pbonz...@redhat.com>

> ---
>  src/boot.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/boot.c b/src/boot.c
> index cd9d784..f30d47e 100644
> --- a/src/boot.c
> +++ b/src/boot.c
> @@ -97,7 +97,7 @@ find_prio(const char *glob)
>      return -1;
>  }
>  
> -#define FW_PCI_DOMAIN "/pci@i0cf8"
> +#define FW_PCI_DOMAIN "/*pci*@i0cf8"
>  
>  static char *
>  build_pci_path(char *buf, int max, const char *devname, struct pci_device 
> *pci)
> 


_______________________________________________
SeaBIOS mailing list
SeaBIOS@seabios.org
http://www.seabios.org/mailman/listinfo/seabios

Reply via email to