public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* How to handle pflash backed OVMF FW upgrade and live migration best?
@ 2018-03-01 11:21 Thomas Lamprecht
  2018-03-02 12:19 ` Laszlo Ersek
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Lamprecht @ 2018-03-01 11:21 UTC (permalink / raw)
  To: qemu-discuss; +Cc: edk2-devel-01

Hi,

I'm currently evaluating how to update the firmware (OVMF) code image
without impacting a KVM/QEMU VM on live migration. I.e., the FW code lives
under /usr/share/OVMF/OVMF_CODE.fd and gets passed to the QEMU command with:

qemu-binary [...] -drive "if=pflash,unit=0,format=raw,readonly,file=/usr/share/OVMF/OVMF_CODE.fd"

Now if the target node has an updated version of OVMF the VM does not really
likes that, as from its POV it gets effectively another code image loaded
from one moment at the other without any notice.

So my questions is if it would make sense to see this read-only pflash
content as "VM state" and send it over during live migration? This would
make migration way easier. Else we need to save all FW files and track which
one the VM is using, so that when starting the migration target VM we pass
along the correct pflash drive file. Sending over a pflash drive could maybe
only get done when a special flag is set for the pflash drive?

As said I can work around in our management stack, but saving the FW image
and tracking which VM uses what version, and that cluster wide, may get
quite a headache and we would need to keep all older OVMF binaries around...

If I'm missing something and there's already an easy way for this I'd be
very happy to hear from it.

Besides qemu-discuss I posted it to edk2-devel as there maybe more people
are in the QEMU and OVMF user intersection. :)

cheers,
Thomas




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

end of thread, other threads:[~2018-03-05  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-01 11:21 How to handle pflash backed OVMF FW upgrade and live migration best? Thomas Lamprecht
2018-03-02 12:19 ` Laszlo Ersek
2018-03-02 12:53   ` Dr. David Alan Gilbert
2018-03-05  8:29     ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox