From patchwork Tue Nov 3 06:02:23 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PC machine types switched to SeaBIOS/gPXE Date: Mon, 02 Nov 2009 20:02:23 -0000 From: Kevin O'Connor X-Patchwork-Id: 37487 Message-Id: <20091103060223.GB13492@morn.localdomain> To: Avi Kivity Cc: "qemu-devel@nongnu.org" , Gleb Natapov On Tue, Nov 03, 2009 at 07:01:52AM +0200, Avi Kivity wrote: > That works too, but if firmware config can use rep/ins, that's one less > interface we have to add. The following patch to seabios seems to work. I'm not sure if there are any special implications to qemu. -Kevin --- a/src/paravirt.c +++ b/src/paravirt.c @@ -23,8 +23,7 @@ qemu_cfg_select(u16 f) static void qemu_cfg_read(u8 *buf, int len) { - while (len--) - *(buf++) = inb(PORT_QEMU_CFG_DATA); + insb(PORT_QEMU_CFG_DATA, buf, len); } static void