From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.groups.io with SMTP id smtpd.web11.1052.1570804061061097438 for ; Fri, 11 Oct 2019 07:27:41 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: redhat.com, ip: 209.132.183.28, mailfrom: lersek@redhat.com) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9C0D43D965; Fri, 11 Oct 2019 14:27:40 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-177.rdu2.redhat.com [10.10.120.177]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9130C5D9CA; Fri, 11 Oct 2019 14:27:39 +0000 (UTC) Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp To: "Gao, Junhao" , "devel@edk2.groups.io" Cc: David Woodhouse References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> From: "Laszlo Ersek" Message-ID: <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> Date: Fri, 11 Oct 2019 16:27:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 11 Oct 2019 14:27:40 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 10/11/19 09:44, Gao, Junhao wrote: > Hi David > > I have found this compiled OVMF-with-csm.fd can support winxp booting up. > OVMF-with-csm.fd path: https://www.kraxel.org/repos/jenkins/seabios/seabios.git-csm-1.12.0-33.63.g43f5df7.x86_64.rpm > Then could you help to provide me the compile method and base code to reproduce this OVMF-with-csm.fd? Ah, good point, I should have remembered that Gerd offers a CSM build in his repo! So, you can easily look up the build instructions, in Gerd's SeaBIOS and OVMF RPM "spec" files. Check out these git repositories: https://git.kraxel.org/cgit/jenkins/seabios/ https://git.kraxel.org/cgit/jenkins/edk2/ Specifically: https://git.kraxel.org/cgit/jenkins/seabios/tree/seabios.git.spec https://git.kraxel.org/cgit/jenkins/edk2/tree/edk2.git.spec.template HTH, Laszlo > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Junhao Gao > Sent: Friday, October 11, 2019 9:33 AM > To: devel@edk2.groups.io; lersek@redhat.com > Cc: David Woodhouse > Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp > > Hi Laszlo > Thank you very much for your great support. > > Hi David > Refer to http://www.linux-kvm.org/downloads/lersek/ovmf-whitepaper-c770f8c.txt. > > Interested users and developers should look for OVMF's "-D CSM_ENABLE" > build-time option, and check out the continuous > integration repository, which provides CSM-enabled OVMF builds. > > Could you help me to choose which branch supporting CSM, and more details, thanks very much. > > Thanks, > Junhao > > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Laszlo Ersek > Sent: Friday, October 11, 2019 2:11 AM > To: Gao, Junhao > Cc: devel@edk2.groups.io; David Woodhouse > Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp > > On 10/10/19 16:37, Junhao Gao wrote: >> Hi edk2 members >> >> I have a question for your help. >> I want to enable qemu+kvm+ovmf to boot up windows xp, >> then ovmf support winxp starting-up? > > To my understanding, the first Windows "family" with any kind of UEFI support is Windows 7. > > OvmfPkg/README has some comments on Windows support: > >> * UEFI Windows 8 boots >> * UEFI Windows 7 & Windows 2008 Server boot (see important notes >> below!) > > and > >> === UEFI Windows 7 & Windows 2008 Server === >> >> * One of the '-vga std' and '-vga qxl' QEMU options should be used. >> * Only one video mode, 1024x768x32, is supported at OS runtime. >> * The '-vga qxl' QEMU option is recommended. After booting the installed >> guest OS, select the video card in Device Manager, and upgrade its driver >> to the QXL XDDM one. Download location: >> , Guest | Windows binaries. >> This enables further resolutions at OS runtime, and provides S3 >> (suspend/resume) capability. > > If you'd like to virtualize Windows XP on QEMU/KVM, please use SeaBIOS for guest firmware. > > You can also try to build OVMF with -D CSM_ENABLE, but for that, you'll have to build SeaBIOS in CSM mode first, and embed that binary into OVMF at build time. Please ask David for details (CC'd). > > Thanks > Laszlo > >> qemu command: >> qemu-system-x86_64 -hda winxp.img -boot c -enable-kvm -cpu host -bios ./OVMF.fd -m 512 -vga cirrus -net nic,model=rtl8139 -net user -usbdevice tablet -localtime >> Then if ovmf support, could you provide me the way to compile the OVMF.fd? >> >> Thanks, >> Junhao >> >> >> >> >> > > > > > > >