I mean you need a PCI device with a UEFI driver that implements FMP to test 
this. Our Solarflare driver currently does, so I can test this, I've sent two 
of our NICs to Peter Jones @ RedHat (If you are interested, I can get you a 
sample of our adapter along with drivers).

Once you have your PCI device and a driver, you make a capsule using 
GenerateCapsule, adding the driver alongside your payload. 

With newish qemu and ovmf you can use PCI passthrough (also called hostdev) to 
pass the PCI device entirely into the VM. Then you run CapsuleApp.efi (built 
from MdeModulePkg) in UEFI shell in that VM and pass the capsule as first 
parameter. That's all there is to it.

I can share my libvirt XML containing the hostdev configuration if you'd like.

Cheers,
Tom

-----Original Message-----
From: Philippe Mathieu-Daudé <phi...@redhat.com> 
Sent: 25 June 2019 15:52
To: Devel EDK2 <devel@edk2.groups.io>; Tomas Pilar <tpi...@solarflare.com>
Cc: jordan.l.jus...@intel.com; Laszlo Ersek <ler...@redhat.com>; Ard Biesheuvel 
<ard.biesheu...@linaro.org>
Subject: Re: [edk2-devel] [PATCH v2] OvmfPkg: Use DxeRuntimeCapsuleLib from 
DxeCapsuleLibFmp in X64 builds

Hi Tomas,

On 6/24/19 5:53 PM, Tomas Pilar (tpilar) wrote:
> Switching to this library enables capsule support for FMP devices.
> This will allow testing of FMP for PCI devices using OVMF and PCI 
> passthrough as well as software parts of the FMP API.
> 
> Simple tests show that a capsule with an embedded driver now updates 
> using CapsuleApp.

How can I test this?

Thanks,

Phil.

> Cc: Jordan Justen <jordan.l.jus...@intel.com>
> Cc: Laszlo Ersek <ler...@redhat.com>
> Cc: Ard Biesheuvel <ard.biesheu...@linaro.org>
> Signed-off-by: Tomas Pilar <tpi...@solarflare.com>
> ---
>  OvmfPkg/OvmfPkgX64.dsc | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 
> 39ac791565..4c41e59a75 100644
> --- a/OvmfPkg/OvmfPkgX64.dsc
> +++ b/OvmfPkg/OvmfPkgX64.dsc
> @@ -125,7 +125,7 @@
>    
> UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManagerLib.inf
>    BootLogoLib|MdeModulePkg/Library/BootLogoLib/BootLogoLib.inf
>
> FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.i
> nf
> -
> CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibNull/DxeCapsuleLibNull.in
> f
> +
> + CapsuleLib|MdeModulePkg/Library/DxeCapsuleLibFmp/DxeRuntimeCapsuleLi
> + b.inf
>    DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
>    
> DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
>
> PeCoffGetEntryPointLib|MdePkg/Library/BasePeCoffGetEntryPointLib/BaseP
> eCoffGetEntryPointLib.inf
> 

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#42832): https://edk2.groups.io/g/devel/message/42832
Mute This Topic: https://groups.io/mt/32193560/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to