From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gpBD4-0002ir-QJ for qemu-devel@nongnu.org; Thu, 31 Jan 2019 07:12:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gpBD3-0007XW-Pj for qemu-devel@nongnu.org; Thu, 31 Jan 2019 07:12:46 -0500 From: Markus Armbruster References: <87y378n5iy.fsf@dusky.pond.sub.org> <87o97yi67d.fsf@dusky.pond.sub.org> <300bdcd7-fbde-d7a3-12a0-eafdc0aa58f6@redhat.com> <87d0oddxu2.fsf@dusky.pond.sub.org> <877eelcgf9.fsf@dusky.pond.sub.org> <9c4e222f-3941-426e-3195-5598b2af1501@redhat.com> Date: Thu, 31 Jan 2019 13:12:29 +0100 In-Reply-To: <9c4e222f-3941-426e-3195-5598b2af1501@redhat.com> (Paolo Bonzini's message of "Thu, 31 Jan 2019 11:12:45 +0100") Message-ID: <87munh9gb6.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] Configuring pflash devices for OVMF firmware List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Peter Krempa , Qemu-block , Libvirt , QEMU Developers , =?utf-8?B?TMOhc3psw7Mgw4lyc2Vr?= Paolo Bonzini writes: > On 31/01/19 10:41, Markus Armbruster wrote: >> Paolo Bonzini writes: >> >>> On 31/01/19 09:40, Markus Armbruster wrote: >>>>> Maybe we should just add pflash block properties to the machine? And >>>>> then it can create the devices if the properties are set to a non-empty >>>>> value. >>>> What exactly do you have in mind? Something like >>>> >>>> -machine q35,ovmf-code=OVMF-CODE-NODE,ovmf-data=OVMF-DATA-NODE >>>> >>>> where OVMF-CODE-NODE and OVMF-DATA-NODE are block backend node names, >>>> i.e. >>>> >>>> -blockdev file,node-name=OVMF-CODE-NODE,read-only=on,filename=/usr/share/edk2/ovmf/OVMF_CODE.fd >>>> -blockdev file,node-name=OVMF-DATA-NODE,read-only=on,filename=... >>> >>> Yes, though I would call it pflash0 and pflash1. >> >> Digression... should we put traditional BIOS in flash as well? Only for >> new machine types, obviously. > > The blocker was that very old KVM didn't support ROMD memory regions. > Now on one hand we don't support those old kernel versions anymore; on > the other hand we have HAX and WHPX that do not support ROMD at all. This is all greek to me. I take it there's something wrong with these accelerators that makes (read-only?) flash memory not work, even though the read-only mapping we now create for traditional BIOS works. Weird, but I'm of course willing to take your word for it. I guess it's fixable, but nobody has stepped up to fix it. Aside: accepting incomplete accelerators, then letting their incompleteness hold back things doesn't strike me as sound policy. Do we reject these accelerators when the user asks for firmware in flash? Or do we let the guest run into some more or less obscure failure?