All of lore.kernel.org
 help / color / mirror / Atom feed
* PXE boot with e1000 using OVMF
@ 2018-09-12 17:54 Tamas K Lengyel
  2018-09-19 16:36 ` Wei Liu
  0 siblings, 1 reply; 6+ messages in thread
From: Tamas K Lengyel @ 2018-09-12 17:54 UTC (permalink / raw)
  To: Xen-devel, Wei Liu

HI all,
I'm experimenting with OVMF and I checked to see if OVMF can do PXE
boot out-of-the box with a e1000 emulated network interface and was
surprised to find that it does not. After reading some of the prior
discussions on the topic (https://lists.gt.net/xen/devel/382432 and
https://lists.xenproject.org/archives/html/xen-users/2015-09/msg00059.html)
I was able to get the menu options to show up by copying efi-e1000.rom
that gets installed by Xen's QEMU build into the disk of the VM and
then loading with loadpcirom manually in the EFI shell. From the prior
discussions it sounds to me like this option rom should have been
automatically served by QEMU to OVMF when the VM started as an
OptionROM. So is this a bug or what's missing?

Thanks,
Tamas

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PXE boot with e1000 using OVMF
  2018-09-12 17:54 PXE boot with e1000 using OVMF Tamas K Lengyel
@ 2018-09-19 16:36 ` Wei Liu
  2018-09-19 17:04   ` Tamas K Lengyel
  0 siblings, 1 reply; 6+ messages in thread
From: Wei Liu @ 2018-09-19 16:36 UTC (permalink / raw)
  To: Tamas K Lengyel; +Cc: Anthony PERARD, Xen-devel, Wei Liu

On Wed, Sep 12, 2018 at 11:54:02AM -0600, Tamas K Lengyel wrote:
> HI all,
> I'm experimenting with OVMF and I checked to see if OVMF can do PXE
> boot out-of-the box with a e1000 emulated network interface and was
> surprised to find that it does not. After reading some of the prior
> discussions on the topic (https://lists.gt.net/xen/devel/382432 and
> https://lists.xenproject.org/archives/html/xen-users/2015-09/msg00059.html)
> I was able to get the menu options to show up by copying efi-e1000.rom
> that gets installed by Xen's QEMU build into the disk of the VM and
> then loading with loadpcirom manually in the EFI shell. From the prior
> discussions it sounds to me like this option rom should have been
> automatically served by QEMU to OVMF when the VM started as an
> OptionROM. So is this a bug or what's missing?

Doesn't QEMU load the option ROM automatically when you specify e1000?

I _think_ it loads option ROM automatically because I have seen complain
that if you configure too many emulated NICs the guest runs out of
memory.

Wei.

> 
> Thanks,
> Tamas

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PXE boot with e1000 using OVMF
  2018-09-19 16:36 ` Wei Liu
@ 2018-09-19 17:04   ` Tamas K Lengyel
  2018-09-20 11:33     ` Anthony PERARD
  0 siblings, 1 reply; 6+ messages in thread
From: Tamas K Lengyel @ 2018-09-19 17:04 UTC (permalink / raw)
  To: Wei Liu; +Cc: anthony.perard, Xen-devel

On Wed, Sep 19, 2018 at 10:36 AM Wei Liu <wei.liu2@citrix.com> wrote:
>
> On Wed, Sep 12, 2018 at 11:54:02AM -0600, Tamas K Lengyel wrote:
> > HI all,
> > I'm experimenting with OVMF and I checked to see if OVMF can do PXE
> > boot out-of-the box with a e1000 emulated network interface and was
> > surprised to find that it does not. After reading some of the prior
> > discussions on the topic (https://lists.gt.net/xen/devel/382432 and
> > https://lists.xenproject.org/archives/html/xen-users/2015-09/msg00059.html)
> > I was able to get the menu options to show up by copying efi-e1000.rom
> > that gets installed by Xen's QEMU build into the disk of the VM and
> > then loading with loadpcirom manually in the EFI shell. From the prior
> > discussions it sounds to me like this option rom should have been
> > automatically served by QEMU to OVMF when the VM started as an
> > OptionROM. So is this a bug or what's missing?
>
> Doesn't QEMU load the option ROM automatically when you specify e1000?
>
> I _think_ it loads option ROM automatically because I have seen complain
> that if you configure too many emulated NICs the guest runs out of
> memory.

I compiled QEMU with DEBUG_PCI enabled in hw/pci/pci.c and then the
log shows efi-e1000.rom being loaded. However, AFAICT since PCI
enumeration is disabled in OVMF when running under Xen (I'm not
exactly sure why) the option rom never gets executed as it only gets
called from the enumeration route
(https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h#L63).
At least that's my current understanding of how option roms work under
OVMF.

Tamas

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PXE boot with e1000 using OVMF
  2018-09-19 17:04   ` Tamas K Lengyel
@ 2018-09-20 11:33     ` Anthony PERARD
  2018-09-20 13:58       ` Tamas K Lengyel
  2018-09-20 16:08       ` Wei Liu
  0 siblings, 2 replies; 6+ messages in thread
From: Anthony PERARD @ 2018-09-20 11:33 UTC (permalink / raw)
  To: Tamas K Lengyel; +Cc: Xen-devel, Wei Liu

On Wed, Sep 19, 2018 at 11:04:22AM -0600, Tamas K Lengyel wrote:
> On Wed, Sep 19, 2018 at 10:36 AM Wei Liu <wei.liu2@citrix.com> wrote:
> >
> > On Wed, Sep 12, 2018 at 11:54:02AM -0600, Tamas K Lengyel wrote:
> > > HI all,
> > > I'm experimenting with OVMF and I checked to see if OVMF can do PXE
> > > boot out-of-the box with a e1000 emulated network interface and was
> > > surprised to find that it does not. After reading some of the prior
> > > discussions on the topic (https://lists.gt.net/xen/devel/382432 and
> > > https://lists.xenproject.org/archives/html/xen-users/2015-09/msg00059.html)
> > > I was able to get the menu options to show up by copying efi-e1000.rom
> > > that gets installed by Xen's QEMU build into the disk of the VM and
> > > then loading with loadpcirom manually in the EFI shell. From the prior
> > > discussions it sounds to me like this option rom should have been
> > > automatically served by QEMU to OVMF when the VM started as an
> > > OptionROM. So is this a bug or what's missing?
> >
> > Doesn't QEMU load the option ROM automatically when you specify e1000?
> >
> > I _think_ it loads option ROM automatically because I have seen complain
> > that if you configure too many emulated NICs the guest runs out of
> > memory.
> 
> I compiled QEMU with DEBUG_PCI enabled in hw/pci/pci.c and then the
> log shows efi-e1000.rom being loaded. However, AFAICT since PCI
> enumeration is disabled in OVMF when running under Xen (I'm not
> exactly sure why) the option rom never gets executed as it only gets

It's because hvmloader (which is runned before OVMF start) takes care of
enumerating the PCI bus. OVMF only has to read the information:
via OvmfPkg/Library/PciHostBridgeLib/XenSupport.c

I can try to find out what's needed in order to load an option rom, or
ask on edk2-devel.

> called from the enumeration route
> (https://github.com/tianocore/edk2/blob/master/MdeModulePkg/Bus/Pci/PciBusDxe/PciEnumerator.h#L63).
> At least that's my current understanding of how option roms work under
> OVMF.

-- 
Anthony PERARD

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PXE boot with e1000 using OVMF
  2018-09-20 11:33     ` Anthony PERARD
@ 2018-09-20 13:58       ` Tamas K Lengyel
  2018-09-20 16:08       ` Wei Liu
  1 sibling, 0 replies; 6+ messages in thread
From: Tamas K Lengyel @ 2018-09-20 13:58 UTC (permalink / raw)
  To: anthony.perard; +Cc: Xen-devel, Wei Liu

On Thu, Sep 20, 2018 at 5:34 AM Anthony PERARD
<anthony.perard@citrix.com> wrote:
>
> On Wed, Sep 19, 2018 at 11:04:22AM -0600, Tamas K Lengyel wrote:
> > On Wed, Sep 19, 2018 at 10:36 AM Wei Liu <wei.liu2@citrix.com> wrote:
> > >
> > > On Wed, Sep 12, 2018 at 11:54:02AM -0600, Tamas K Lengyel wrote:
> > > > HI all,
> > > > I'm experimenting with OVMF and I checked to see if OVMF can do PXE
> > > > boot out-of-the box with a e1000 emulated network interface and was
> > > > surprised to find that it does not. After reading some of the prior
> > > > discussions on the topic (https://lists.gt.net/xen/devel/382432 and
> > > > https://lists.xenproject.org/archives/html/xen-users/2015-09/msg00059.html)
> > > > I was able to get the menu options to show up by copying efi-e1000.rom
> > > > that gets installed by Xen's QEMU build into the disk of the VM and
> > > > then loading with loadpcirom manually in the EFI shell. From the prior
> > > > discussions it sounds to me like this option rom should have been
> > > > automatically served by QEMU to OVMF when the VM started as an
> > > > OptionROM. So is this a bug or what's missing?
> > >
> > > Doesn't QEMU load the option ROM automatically when you specify e1000?
> > >
> > > I _think_ it loads option ROM automatically because I have seen complain
> > > that if you configure too many emulated NICs the guest runs out of
> > > memory.
> >
> > I compiled QEMU with DEBUG_PCI enabled in hw/pci/pci.c and then the
> > log shows efi-e1000.rom being loaded. However, AFAICT since PCI
> > enumeration is disabled in OVMF when running under Xen (I'm not
> > exactly sure why) the option rom never gets executed as it only gets
>
> It's because hvmloader (which is runned before OVMF start) takes care of
> enumerating the PCI bus. OVMF only has to read the information:
> via OvmfPkg/Library/PciHostBridgeLib/XenSupport.c
>
> I can try to find out what's needed in order to load an option rom, or
> ask on edk2-devel.
>

That would be much appreciated, please cc me when you do. On KVM
option roms just work with OVMF and this is an important feature
that's missing when using Xen.

Thanks,
Tamas

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: PXE boot with e1000 using OVMF
  2018-09-20 11:33     ` Anthony PERARD
  2018-09-20 13:58       ` Tamas K Lengyel
@ 2018-09-20 16:08       ` Wei Liu
  1 sibling, 0 replies; 6+ messages in thread
From: Wei Liu @ 2018-09-20 16:08 UTC (permalink / raw)
  To: Anthony PERARD; +Cc: Tamas K Lengyel, Wei Liu, Xen-devel

On Thu, Sep 20, 2018 at 12:33:42PM +0100, Anthony PERARD wrote:
> On Wed, Sep 19, 2018 at 11:04:22AM -0600, Tamas K Lengyel wrote:
> > On Wed, Sep 19, 2018 at 10:36 AM Wei Liu <wei.liu2@citrix.com> wrote:
> > >
> > > On Wed, Sep 12, 2018 at 11:54:02AM -0600, Tamas K Lengyel wrote:
> > > > HI all,
> > > > I'm experimenting with OVMF and I checked to see if OVMF can do PXE
> > > > boot out-of-the box with a e1000 emulated network interface and was
> > > > surprised to find that it does not. After reading some of the prior
> > > > discussions on the topic (https://lists.gt.net/xen/devel/382432 and
> > > > https://lists.xenproject.org/archives/html/xen-users/2015-09/msg00059.html)
> > > > I was able to get the menu options to show up by copying efi-e1000.rom
> > > > that gets installed by Xen's QEMU build into the disk of the VM and
> > > > then loading with loadpcirom manually in the EFI shell. From the prior
> > > > discussions it sounds to me like this option rom should have been
> > > > automatically served by QEMU to OVMF when the VM started as an
> > > > OptionROM. So is this a bug or what's missing?
> > >
> > > Doesn't QEMU load the option ROM automatically when you specify e1000?
> > >
> > > I _think_ it loads option ROM automatically because I have seen complain
> > > that if you configure too many emulated NICs the guest runs out of
> > > memory.
> > 
> > I compiled QEMU with DEBUG_PCI enabled in hw/pci/pci.c and then the
> > log shows efi-e1000.rom being loaded. However, AFAICT since PCI
> > enumeration is disabled in OVMF when running under Xen (I'm not
> > exactly sure why) the option rom never gets executed as it only gets
> 
> It's because hvmloader (which is runned before OVMF start) takes care of
> enumerating the PCI bus. OVMF only has to read the information:
> via OvmfPkg/Library/PciHostBridgeLib/XenSupport.c

Indeed.

> 
> I can try to find out what's needed in order to load an option rom, or
> ask on edk2-devel.

Thank you!

Wei.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-20 16:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-12 17:54 PXE boot with e1000 using OVMF Tamas K Lengyel
2018-09-19 16:36 ` Wei Liu
2018-09-19 17:04   ` Tamas K Lengyel
2018-09-20 11:33     ` Anthony PERARD
2018-09-20 13:58       ` Tamas K Lengyel
2018-09-20 16:08       ` Wei Liu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.