From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web12.6250.1570718281706566141 for ; Thu, 10 Oct 2019 07:38:01 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: junhao.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2019 07:38:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,280,1566889200"; d="scan'208,217";a="369106701" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga005.jf.intel.com with ESMTP; 10 Oct 2019 07:38:00 -0700 Received: from fmsmsx115.amr.corp.intel.com (10.18.116.19) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 10 Oct 2019 07:38:00 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx115.amr.corp.intel.com (10.18.116.19) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 10 Oct 2019 07:38:00 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX154.ccr.corp.intel.com ([10.239.6.54]) with mapi id 14.03.0439.000; Thu, 10 Oct 2019 22:37:58 +0800 From: "Junhao Gao" To: "devel@edk2.groups.io" Subject: question about qemu+kvm+ovmf+winxp Thread-Topic: question about qemu+kvm+ovmf+winxp Thread-Index: AdV/d1Cgr1GFE2MpSZCiy3fhXb9THg== Date: Thu, 10 Oct 2019 14:37:58 +0000 Message-ID: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMzI2NTFhNjUtNDhlYy00ODdlLWJlZTMtMThmNTIzOTQ4ZTE4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoia0drSWFnNXg3dUZvVlh5Q0dNK2lXaVRFWWpsSnFSNmlFMStSRW9rOCtRRzdueDRueHJPQXlDYVwvc0xFYlBuM1AifQ== x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: junhao.gao@intel.com Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_50E163A92F208D4B8CEB452055E613EB0AFE85F7SHSMSX101ccrcor_" --_000_50E163A92F208D4B8CEB452055E613EB0AFE85F7SHSMSX101ccrcor_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi edk2 members I have a question for your help. I want to enable qemu+kvm+ovmf to boot up windows xp, then o= vmf support winxp starting-up? qemu command: qemu-system-x86_64 -hda winxp.img -boot c -enable-kvm -cpu h= ost -bios ./OVMF.fd -m 512 -vga cirrus -net nic,model=3Drtl8139 -net user -= usbdevice tablet -localtime Then if ovmf support, could you provide me the way to compil= e the OVMF.fd? Thanks, Junhao --_000_50E163A92F208D4B8CEB452055E613EB0AFE85F7SHSMSX101ccrcor_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi edk2 members

 

        &nbs= p;      I have a question for your help.

        &nbs= p;      I want to enable qemu+kvm+ovmf to = boot up windows xp, then ovmf support winxp starting-up?

        &nbs= p;      qemu command:

        &nbs= p;      qemu-system-x86_64 -hda winxp.img -boot c = -enable-kvm -cpu host -bios ./OVMF.fd -m 512 -vga cirrus -net nic,model=3Drtl8139 -net user -usb= device tablet -localtime

        &nbs= p;      Then if ovmf support, could you provide me= the way to compile the OVMF.fd?

 

Thanks,

Junhao

 

--_000_50E163A92F208D4B8CEB452055E613EB0AFE85F7SHSMSX101ccrcor_-- 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.web12.1075.1570731038276483949 for ; Thu, 10 Oct 2019 11:10:38 -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 DB1218D5D80; Thu, 10 Oct 2019 18:10:37 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-120-48.rdu2.redhat.com [10.10.120.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 034725DA2C; Thu, 10 Oct 2019 18:10:36 +0000 (UTC) Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp To: junhao.gao@intel.com References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> From: "Laszlo Ersek" Cc: devel@edk2.groups.io, David Woodhouse Message-ID: Date: Thu, 10 Oct 2019 20:10:36 +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: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@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.6.2 (mx1.redhat.com [10.5.110.69]); Thu, 10 Oct 2019 18:10:37 +0000 (UTC) Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 > > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.4751.1570757572241782541 for ; Thu, 10 Oct 2019 18:32:52 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: junhao.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Oct 2019 18:32:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,282,1566889200"; d="scan'208";a="395594737" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga006.fm.intel.com with ESMTP; 10 Oct 2019 18:32:51 -0700 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 10 Oct 2019 18:32:51 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 10 Oct 2019 18:32:51 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX154.ccr.corp.intel.com ([10.239.6.54]) with mapi id 14.03.0439.000; Fri, 11 Oct 2019 09:32:49 +0800 From: "Junhao Gao" To: "devel@edk2.groups.io" , "lersek@redhat.com" CC: David Woodhouse Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp Thread-Topic: [edk2-devel] question about qemu+kvm+ovmf+winxp Thread-Index: AdV/d1Cgr1GFE2MpSZCiy3fhXb9THv//t0kA//7/spA= Date: Fri, 11 Oct 2019 01:32:48 +0000 Message-ID: <50E163A92F208D4B8CEB452055E613EB0AFE8A48@SHSMSX101.ccr.corp.intel.com> References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmYxMjlhNzAtZThlYy00MzM0LWI4Y2ItMjE5OWJhNmU3MTUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWFpnZWp1a2xNZWc4UEozb0ZVR2tvQm1idTk0SEtzWmlUakJxaHFTeCt2SHhBTWdZaEozWjZnSzJkK0V4U05SXC8ifQ== x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: junhao.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Laszlo Thank you very much for your great support. Hi David Refer to http://www.linux-kvm.org/downloads/lersek/ovmf-whitepaper-c770f8= c.txt. Interested users and developers should look for OVMF's "-D CSM_ENABLE" build-time option, and check out the cont= inuous integration repository, which provides CSM-enabled OVMF builds. =09 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 Erse= k 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 supp= ort 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=20 > below!) and > =3D=3D=3D UEFI Windows 7 & Windows 2008 Server =3D=3D=3D > > * 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 dri= ver > 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 ha= ve to build SeaBIOS in CSM mode first, and embed that binary into OVMF at b= uild time. Please ask David for details (CC'd). Thanks Laszlo > qemu command: > qemu-system-x86_64 -hda winxp.img -boot c -enable-kvm -cp= u host -bios ./OVMF.fd -m 512 -vga cirrus -net nic,model=3Drtl8139 -net use= r -usbdevice tablet -localtime > Then if ovmf support, could you provide me the way to com= pile the OVMF.fd? > > Thanks, > Junhao > > >=20 > > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.6964.1570779902913434496 for ; Fri, 11 Oct 2019 00:45:03 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: junhao.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2019 00:45:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,283,1566889200"; d="scan'208";a="194257853" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga007.fm.intel.com with ESMTP; 11 Oct 2019 00:45:01 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 00:45:01 -0700 Received: from shsmsx153.ccr.corp.intel.com (10.239.6.53) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 00:45:00 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX153.ccr.corp.intel.com ([10.239.6.53]) with mapi id 14.03.0439.000; Fri, 11 Oct 2019 15:44:59 +0800 From: "Junhao Gao" To: "devel@edk2.groups.io" , "Gao, Junhao" , "lersek@redhat.com" CC: David Woodhouse Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp Thread-Topic: [edk2-devel] question about qemu+kvm+ovmf+winxp Thread-Index: AdV/d1Cgr1GFE2MpSZCiy3fhXb9THv//t0kA//7/spD//ZdNUA== Date: Fri, 11 Oct 2019 07:44:57 +0000 Message-ID: <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> In-Reply-To: <15CC73B09CF3FDD9.17220@groups.io> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmYxMjlhNzAtZThlYy00MzM0LWI4Y2ItMjE5OWJhNmU3MTUzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiWFpnZWp1a2xNZWc4UEozb0ZVR2tvQm1idTk0SEtzWmlUakJxaHFTeCt2SHhBTWdZaEozWjZnSzJkK0V4U05SXC8ifQ== x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: junhao.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi David=20 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/seabi= os.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 rep= roduce this OVMF-with-csm.fd? Thanks, Junhao=20 -----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-c770f8= c.txt. Interested users and developers should look for OVMF's "-D CSM_ENABLE" build-time option, and check out the cont= inuous integration repository, which provides CSM-enabled OVMF builds. =09 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 Erse= k 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 supp= ort 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=20 > below!) and > =3D=3D=3D UEFI Windows 7 & Windows 2008 Server =3D=3D=3D > > * 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 dri= ver > 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 ha= ve to build SeaBIOS in CSM mode first, and embed that binary into OVMF at b= uild time. Please ask David for details (CC'd). Thanks Laszlo > qemu command: > qemu-system-x86_64 -hda winxp.img -boot c -enable-kvm -cp= u host -bios ./OVMF.fd -m 512 -vga cirrus -net nic,model=3Drtl8139 -net use= r -usbdevice tablet -localtime > Then if ovmf support, could you provide me the way to com= pile the OVMF.fd? > > Thanks, > Junhao > > >=20 > > 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 >> >> >> >> >> > > > > > > > From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by mx.groups.io with SMTP id smtpd.web12.1108.1570804561234003851 for ; Fri, 11 Oct 2019 07:36:03 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=0jx2GkHF; spf=none, err=permanent DNS error (domain: merlin.srs.infradead.org, ip: 205.233.59.134, mailfrom: batv+a5d316409f0941c507fe+5892+infradead.org+dwmw2@merlin.srs.infradead.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Mime-Version:Content-Type:References: In-Reply-To:Date:To:From:Subject:Message-ID:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=osKl98y5756w/+zGb+TezQ7sp3jpawjtIJjo5aoaUPQ=; b=0jx2GkHFL2UOOXO8gG/qzLwFn kc5qOZUf6eXNfg2GnTUuzWZsgVDCeb2s8cSPhhBU+wz5Lt6/b4GWWhbrnfEyCkhQ2g0TOhyazYUNs 6GN+OSY2FBWnvCenVjjf04Kql349a7gHdm7uHBk2V29KTZ6LLn5/G3H293rhTH/mlHj/ZX9Q5G9qT ISnVG6pL+TwuxXIo8RFfAy7rI8CRHPNn0wEvrz5ygJ9em9saYdXesxIah8tjQ6HsQjC8qvZh6Iemj MvO6Oy989BlG2+yZJAoxzP+V+htc0S27qKoNGY3U6ODjaLzf5GAIPbGWkAHIVeFik+qJ8oCkbphe2 MYKJzYv+A==; Received: from [54.239.6.177] (helo=freeip.amazon.com) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iIw1K-0000Ih-Hl; Fri, 11 Oct 2019 14:35:54 +0000 Message-ID: <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp From: "David Woodhouse" To: Laszlo Ersek , "Gao, Junhao" , "devel@edk2.groups.io" Date: Fri, 11 Oct 2019 15:35:52 +0100 In-Reply-To: <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by merlin.infradead.org. See http://www.infradead.org/rpr.html X-Groupsio-MsgNum: 48827 Content-Type: multipart/signed; micalg="sha-256"; protocol="application/x-pkcs7-signature"; boundary="=-W70Kro4WwNLgAvkKT33F" --=-W70Kro4WwNLgAvkKT33F Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 2019-10-11 at 16:27 +0200, Laszlo Ersek wrote: > On 10/11/19 09:44, Gao, Junhao wrote: > > Hi David=20 > >=20 > > I have found this compiled OVMF-with-csm.fd can support winxp bo= oting up. > > OVMF-with-csm.fd path: https://www.kraxel.org/repos/jenkins/seab= ios/seabios.git-csm-1.12.0-33.63.g43f5df7.x86_64.rpm > > Then could you help to provide me the compile method and base co= de to reproduce this OVMF-with-csm.fd? >=20 > Ah, good point, I should have remembered that Gerd offers a CSM build in > his repo! >=20 > So, you can easily look up the build instructions, in Gerd's SeaBIOS and > OVMF RPM "spec" files. Check out these git repositories: >=20 > https://git.kraxel.org/cgit/jenkins/seabios/ > https://git.kraxel.org/cgit/jenkins/edk2/ >=20 > Specifically: >=20 > https://git.kraxel.org/cgit/jenkins/seabios/tree/seabios.git.spec > https://git.kraxel.org/cgit/jenkins/edk2/tree/edk2.git.spec.template Right, thanks. Ultimately it's as simple as: =E2=80=A2 Build SeaBIOS with CONFIG_CSM =E2=80=A2 Drop the resulting Csm16.bin into OvmfPkg/Csm/Csm16/ in the EDK2= tree =E2=80=A2 Build EDK2 with -DCSM_ENABLE Someone else mailed me recently to say they'd copied the Csm packages over from OvmfPkg to Quark and had Windows booting on Galileo boards. =20 Hm, I wonder if we should move the CSM support out of OVMF and into somewhere more generic, since it really is generic and not platform- specific? --=-W70Kro4WwNLgAvkKT33F Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Disposition: attachment; filename="smime.p7s" Content-Transfer-Encoding: base64 MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCCECow ggUcMIIEBKADAgECAhEA4rtJSHkq7AnpxKUY8ZlYZjANBgkqhkiG9w0BAQsFADCBlzELMAkGA1UE BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPTA7BgNVBAMTNENPTU9ETyBSU0EgQ2xpZW50IEF1dGhl bnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0EwHhcNMTkwMTAyMDAwMDAwWhcNMjIwMTAxMjM1 OTU5WjAkMSIwIAYJKoZIhvcNAQkBFhNkd213MkBpbmZyYWRlYWQub3JnMIIBIjANBgkqhkiG9w0B AQEFAAOCAQ8AMIIBCgKCAQEAsv3wObLTCbUA7GJqKj9vHGf+Fa+tpkO+ZRVve9EpNsMsfXhvFpb8 RgL8vD+L133wK6csYoDU7zKiAo92FMUWaY1Hy6HqvVr9oevfTV3xhB5rQO1RHJoAfkvhy+wpjo7Q cXuzkOpibq2YurVStHAiGqAOMGMXhcVGqPuGhcVcVzVUjsvEzAV9Po9K2rpZ52FE4rDkpDK1pBK+ uOAyOkgIg/cD8Kugav5tyapydeWMZRJQH1vMQ6OVT24CyAn2yXm2NgTQMS1mpzStP2ioPtTnszIQ Ih7ASVzhV6csHb8Yrkx8mgllOyrt9Y2kWRRJFm/FPRNEurOeNV6lnYAXOymVJwIDAQABo4IB0zCC Ac8wHwYDVR0jBBgwFoAUgq9sjPjF/pZhfOgfPStxSF7Ei8AwHQYDVR0OBBYEFLfuNf820LvaT4AK xrGK3EKx1DE7MA4GA1UdDwEB/wQEAwIFoDAMBgNVHRMBAf8EAjAAMB0GA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hMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxPTA7BgNVBAMTNENPTU9ETyBSU0EgQ2xpZW50IEF1dGhl bnRpY2F0aW9uIGFuZCBTZWN1cmUgRW1haWwgQ0ECEQDiu0lIeSrsCenEpRjxmVhmMA0GCSqGSIb3 DQEBAQUABIIBACAW19CMkr88ZG6WWpulcwbUVIasRr3ui+VP17oEUvMLFqX0m9SuZWnRrJp5q/FV PjGKN3GAaH5k3xnsnz9jAHW3LcbSqFkagOSLjx8DBBjkAQLxhakoVKEm0l/RfiwoZ4Gdk+nWb5/L YXKa1YbD1TdreAM5O4XmsX8eFDN30R3nxOEsEVytPty9I4+R+TvehzVU5426teDjWgHlgs4XsYYY 2s7xbXd2rMcDpaITSPyMP3fzhe/zAgi2tDWFWtyofjlTHMj3upS9cSTAcCIVjU2ioL1dKGf3O4zY cMcdJOBDugKoSNzV00X7WeN5wOWkONABPseXrJX6grLSUUqJz4wAAAAAAAA= --=-W70Kro4WwNLgAvkKT33F-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.2318.1570860835572139849 for ; Fri, 11 Oct 2019 23:13:55 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: junhao.gao@intel.com) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2019 23:13:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,286,1566889200"; d="scan'208";a="193745270" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga008.fm.intel.com with ESMTP; 11 Oct 2019 23:13:55 -0700 Received: from fmsmsx113.amr.corp.intel.com (10.18.116.7) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 23:13:54 -0700 Received: from shsmsx154.ccr.corp.intel.com (10.239.6.54) by FMSMSX113.amr.corp.intel.com (10.18.116.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 23:13:54 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX154.ccr.corp.intel.com ([10.239.6.54]) with mapi id 14.03.0439.000; Sat, 12 Oct 2019 14:13:52 +0800 From: "Junhao Gao" To: David Woodhouse , Laszlo Ersek , "devel@edk2.groups.io" Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp Thread-Topic: [edk2-devel] question about qemu+kvm+ovmf+winxp Thread-Index: AdV/d1Cgr1GFE2MpSZCiy3fhXb9THv//t0kA//7/spD//ZdNUIAEvQoAgAACTQD//ncPcA== Date: Sat, 12 Oct 2019 06:13:51 +0000 Message-ID: <50E163A92F208D4B8CEB452055E613EB0AFE8F18@SHSMSX101.ccr.corp.intel.com> References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> In-Reply-To: <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNmFkNjQ0YzUtMTJmOC00ZjY1LTg2ZmMtYzUwYTc2MmVkZmQzIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiMmljSnFaK0p6OHE4SmZpSlwvWkZEY1BveDVkemhhYmYxQzdZc25cL25ZS2VybmJhbXg4eWdCM2tYblZYOTVRZys4In0= x-ctpclassification: CTP_NT x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: junhao.gao@intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 DQoNCj4gLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCj4gRnJvbTogRGF2aWQgV29vZGhvdXNl IDxkd213MkBpbmZyYWRlYWQub3JnPg0KPiBTZW50OiBGcmlkYXksIE9jdG9iZXIgMTEsIDIwMTkg MTA6MzYgUE0NCj4gVG86IExhc3psbyBFcnNlayA8bGVyc2VrQHJlZGhhdC5jb20+OyBHYW8sIEp1 bmhhbyA8anVuaGFvLmdhb0BpbnRlbC5jb20+Ow0KPiBkZXZlbEBlZGsyLmdyb3Vwcy5pbw0KPiBT dWJqZWN0OiBSZTogW2VkazItZGV2ZWxdIHF1ZXN0aW9uIGFib3V0IHFlbXUra3ZtK292bWYrd2lu eHANCj4gDQo+IE9uIEZyaSwgMjAxOS0xMC0xMSBhdCAxNjoyNyArMDIwMCwgTGFzemxvIEVyc2Vr IHdyb3RlOg0KPiA+IE9uIDEwLzExLzE5IDA5OjQ0LCBHYW8sIEp1bmhhbyB3cm90ZToNCj4gPiA+ IEhpIERhdmlkDQo+ID4gPg0KPiA+ID4gICAgICAgIEkgaGF2ZSBmb3VuZCB0aGlzIGNvbXBpbGVk IE9WTUYtd2l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CB0aGUgQ3NtIHBhY2thZ2VzDQo+IG92ZXIgZnJv bSBPdm1mUGtnIHRvIFF1YXJrIGFuZCBoYWQgV2luZG93cyBib290aW5nIG9uIEdhbGlsZW8gYm9h cmRzLg0KPiANCj4gSG0sIEkgd29uZGVyIGlmIHdlIHNob3VsZCBtb3ZlIHRoZSBDU00gc3VwcG9y dCBvdXQgb2YgT1ZNRiBhbmQgaW50bw0KPiBzb21ld2hlcmUgbW9yZSBnZW5lcmljLCBzaW5jZSBp dCByZWFsbHkgaXMgZ2VuZXJpYyBhbmQgbm90IHBsYXRmb3JtLQ0KPiBzcGVjaWZpYz8NCg0KSSBj YW4ndCBtYWtlIHNvbWUgZGVjaXNpb25zLCBmcm9tIG15IHZpZXcsIG1heWJlIENTTSBtb2R1bGUg Y2FuIGJlIA0KYW4gaW5kZXBlbmRlbnQgcGF0Y2ggZm9yIHVzZXIgdG8gYXBwbHkgb3IgcmVqZWN0 IDopDQo= From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ma1-aaemail-dr-lapp02.apple.com (ma1-aaemail-dr-lapp02.apple.com [17.171.2.68]) by mx.groups.io with SMTP id smtpd.web10.2378.1570861645613399698 for ; Fri, 11 Oct 2019 23:27:26 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=PNNvqOwV; spf=pass (domain: apple.com, ip: 17.171.2.68, mailfrom: afish@apple.com) Received: from pps.filterd (ma1-aaemail-dr-lapp02.apple.com [127.0.0.1]) by ma1-aaemail-dr-lapp02.apple.com (8.16.0.27/8.16.0.27) with SMTP id x9C6RKed001338; Fri, 11 Oct 2019 23:27:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=sender : from : message-id : content-type : mime-version : subject : date : in-reply-to : cc : to : references; s=20180706; bh=vCqdljAtv3CLsnMMNwA66Q+uuck+Xm8YRL+pZhzXA+M=; b=PNNvqOwVb6kzH7Lc1dCRCrg8tfMquGTYt4MonY5AyPklmUJvZk3zRbnpEPrVFL8MEjNW MQ6OY1VlTUFSdR/yw7LFSbO3CYbV73OSDISSLpS3UvINrXTJuZFHY0eerdvR9wcAshk/ N8bC1KUchEDEtctwqy7Y+M9AR9K+/JqUzG1y/0eIg8Ww/ReU829x8dMFlnFcizo/8wVK 4H2nOJ2qv4rDGFgdOJxY6yWF9AhmuzEer0rhJhZeZj69pxgx5+LpNDs0I7MU2H7tQm7G jhQe+nqndpr1FNqcV19C7CxloQp8UGW0bfy1LMCiCfFmyzfUeb+8JMurUjpjgWC5FaEi ZA== Received: from ma1-mtap-s01.corp.apple.com (ma1-mtap-s01.corp.apple.com [17.40.76.5]) by ma1-aaemail-dr-lapp02.apple.com with ESMTP id 2vequx8bs7-10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 11 Oct 2019 23:27:23 -0700 Received: from nwk-mmpp-sz09.apple.com (nwk-mmpp-sz09.apple.com [17.128.115.80]) by ma1-mtap-s01.corp.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPS id <0PZ9007K20LJLU20@ma1-mtap-s01.corp.apple.com>; Fri, 11 Oct 2019 23:27:19 -0700 (PDT) Received: from process_milters-daemon.nwk-mmpp-sz09.apple.com by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) id <0PZ800100ZNHRE00@nwk-mmpp-sz09.apple.com>; Fri, 11 Oct 2019 23:27:19 -0700 (PDT) X-Va-A: X-Va-T-CD: 8470012fde081de1423ca349c61f0567 X-Va-E-CD: c45a85035969dbe72d76011f9b4a5dcb X-Va-R-CD: bafbfdcfb394704e62e9aa060f553ed5 X-Va-CD: 0 X-Va-ID: 9788f0dd-07f3-4a87-bfa8-9c67818da080 X-V-A: X-V-T-CD: 8470012fde081de1423ca349c61f0567 X-V-E-CD: c45a85035969dbe72d76011f9b4a5dcb X-V-R-CD: bafbfdcfb394704e62e9aa060f553ed5 X-V-CD: 0 X-V-ID: 26accf95-e55c-48e0-96cb-f180cd9c0046 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-12_03:,, signatures=0 Received: from [17.235.27.235] (unknown [17.235.27.235]) by nwk-mmpp-sz09.apple.com (Oracle Communications Messaging Server 8.0.2.4.20190507 64bit (built May 7 2019)) with ESMTPSA id <0PZ900F8O0L9V970@nwk-mmpp-sz09.apple.com>; Fri, 11 Oct 2019 23:27:11 -0700 (PDT) Sender: afish@apple.com From: "Andrew Fish" Message-id: <4006049B-57D4-46F7-BB84-C8DA11B2A844@apple.com> MIME-version: 1.0 (Mac OS X Mail 13.0 \(3594.4.17\)) Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp Date: Fri, 11 Oct 2019 23:27:09 -0700 In-reply-to: <50E163A92F208D4B8CEB452055E613EB0AFE8F18@SHSMSX101.ccr.corp.intel.com> Cc: David Woodhouse , Laszlo Ersek To: devel@edk2.groups.io, junhao.gao@intel.com References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> <50E163A92F208D4B8CEB452055E613EB0AFE8F18@SHSMSX101.ccr.corp.intel.com> X-Mailer: Apple Mail (2.3594.4.17) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-12_03:,, signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF" --Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Junhao FYI there is a regression in master for OVFM right now: https://bugzilla.t= ianocore.org/show_bug.cgi?id=3D2266 so you might be hitting that. Thanks, Andrew Fish > On Oct 11, 2019, at 11:13 PM, Junhao Gao wrote: >=20 >=20 >=20 >> -----Original Message----- >> From: David Woodhouse = > >> Sent: Friday, October 11, 2019 10:36 PM >> To: Laszlo Ersek >; Gao, J= unhao >; >> devel@edk2.groups.io >> Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp >>=20 >> On Fri, 2019-10-11 at 16:27 +0200, Laszlo Ersek wrote: >>> On 10/11/19 09:44, Gao, Junhao wrote: >>>> Hi David >>>>=20 >>>> I have found this compiled OVMF-with-csm.fd can support winxp b= ooting >> 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 c= ode to >> reproduce this OVMF-with-csm.fd? >>>=20 >>> Ah, good point, I should have remembered that Gerd offers a CSM build = in >>> his repo! >>>=20 >>> So, you can easily look up the build instructions, in Gerd's SeaBIOS a= nd >>> OVMF RPM "spec" files. Check out these git repositories: >>>=20 >>> https://git.kraxel.org/cgit/jenkins/seabios/ >>> https://git.kraxel.org/cgit/jenkins/edk2/ >>>=20 >>> Specifically: >>>=20 >>> https://git.kraxel.org/cgit/jenkins/seabios/tree/seabios.git.spec >>> https://git.kraxel.org/cgit/jenkins/edk2/tree/edk2.git.spec.template >>=20 >> Right, thanks. >>=20 >> Ultimately it's as simple as: >>=20 >> =E2=80=A2 Build SeaBIOS with CONFIG_CSM >> =E2=80=A2 Drop the resulting Csm16.bin into OvmfPkg/Csm/Csm16/ in the E= DK2 tree >> =E2=80=A2 Build EDK2 with -DCSM_ENABLE >>=20 >=20 > Thanks David, follow these steps, I can reproduce the OVMF-with-csm.fd. > However, I find that when I choose remotes/origin/master branch, after c= ompiling, qemu+kvm+ovmf+winxp can't=20 > boot up, but when I choose remotes/origin/UDK2018, the compiled OVMF.fd = can work. > So the latest edk2 code have removed CSM support? Could I apply the CSM = patch to=20 > the latest edk2 code to support my work because our project is based on = the latest EDK2 code, thanks. >=20 >> Someone else mailed me recently to say they'd copied the Csm packages >> over from OvmfPkg to Quark and had Windows booting on Galileo boards. >>=20 >> Hm, I wonder if we should move the CSM support out of OVMF and into >> somewhere more generic, since it really is generic and not platform- >> specific? >=20 > I can't make some decisions, from my view, maybe CSM module can be=20 > an independent patch for user to apply or reject :) >=20 >=20 --Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

Junhao  


FYI there is a regression in master f= or OVFM right now: https://bugzilla.tianocore.org/show_bug.cgi?id=3D= 2266 so you might be hitting that.


Thanks,

Andrew Fish

On Oct 11, 2019, at 11:13 PM, Junhao Gao &l= t;junhao.gao@intel.com> wrote:

=

-----Original Message-----
From: David= Woodhouse <
dwmw2@infr= adead.org>
Sent: Friday, October 11, 2019 10:36 PM
To: Laszlo Ersek <lersek@redhat.com>; Gao, Junhao <junhao.gao@intel.com>;
devel@edk2.groups.io
Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp

On Fri, 2019-10-11 at 16:27 +0200, Laszlo Ersek wr= ote:
On 10/11/19 09:44, = Gao, Junhao wrote:
Hi Da= vid

      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 metho= d and base code to
reproduce this O= VMF-with-csm.fd?

Ah, good point, I should have remembered that Gerd offers a CSM bui= ld in
his repo!

So, you can easi= ly 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/
&nb= sp;https://git.kraxel.org/cgit/jenkins/edk2/

S= pecifically:

 https://git.kraxel.org/cgit= /jenkins/seabios/tree/seabios.git.spec
 https://git.krax= el.org/cgit/jenkins/edk2/tree/edk2.git.spec.template

Right, thanks.

Ultimately = it's as simple as:

=E2=80=A2 Build SeaBIOS wit= h CONFIG_CSM
=E2=80=A2 Drop the resulting Csm16.bin into Ovmf= Pkg/Csm/Csm16/ in the EDK2 tree
=E2=80=A2 Build EDK2 with -DC= SM_ENABLE


Thanks David, follow these steps, I can reproduce th= e OVMF-with-csm.fd.
How= ever, I find that when I choose remotes/origin/master branch, after compili= ng, qemu+kvm+ovmf+winxp can't 
boot up, but when= I choose remotes/origin/UDK2018, the compiled OVMF.fd can work.
So the latest edk2 code have remo= ved CSM support? Could I apply the CSM patch to 
the latest edk2 code to support my work because our project is based on th= e latest EDK2 code, thanks.
Someone else maile= d me recently to say they'd copied the Csm packages
over from= OvmfPkg to Quark and had Windows booting on Galileo boards.
=
Hm, I wonder if we should move the CSM support out of OVMF a= nd into
somewhere more generic, since it really is generic an= d not platform-
specific?

I can't make some decisions, from my = view, maybe CSM module can be 
an independent pa= tch for user to apply or reject :)


--Apple-Mail=_F3E83584-0F81-492F-A547-24DB4A6DA9EF-- 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.2970.1571057984897421762 for ; Mon, 14 Oct 2019 05:59:45 -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-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7AAB13090FC9; Mon, 14 Oct 2019 12:59:44 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-117-254.ams2.redhat.com [10.36.117.254]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8A3A95D6A7; Mon, 14 Oct 2019 12:59:43 +0000 (UTC) Subject: Re: [edk2-devel] question about qemu+kvm+ovmf+winxp To: David Woodhouse , "Gao, Junhao" , "devel@edk2.groups.io" References: <50E163A92F208D4B8CEB452055E613EB0AFE85F7@SHSMSX101.ccr.corp.intel.com> <15CC73B09CF3FDD9.17220@groups.io> <50E163A92F208D4B8CEB452055E613EB0AFE8C2B@SHSMSX101.ccr.corp.intel.com> <0d2c8aa3-0147-d297-5d03-21562e438fdf@redhat.com> <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> From: "Laszlo Ersek" Message-ID: Date: Mon, 14 Oct 2019 14:59:42 +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: <26980775fc87acc8c4d180626d853607e9f20b0e.camel@infradead.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.43]); Mon, 14 Oct 2019 12:59:44 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 10/11/19 16:35, David Woodhouse wrote: > On Fri, 2019-10-11 at 16:27 +0200, Laszlo Ersek wrote: >> On 10/11/19 09:44, Gao, Junhao wrote: >>> Hi David=20 >>> >>> 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/se= abios/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 a= nd >> 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 >=20 > Right, thanks. >=20 > Ultimately it's as simple as: >=20 > =E2=80=A2 Build SeaBIOS with CONFIG_CSM > =E2=80=A2 Drop the resulting Csm16.bin into OvmfPkg/Csm/Csm16/ in the = EDK2 tree > =E2=80=A2 Build EDK2 with -DCSM_ENABLE >=20 > Someone else mailed me recently to say they'd copied the Csm packages > over from OvmfPkg to Quark and had Windows booting on Galileo boards. =20 >=20 > Hm, I wonder if we should move the CSM support out of OVMF and into > somewhere more generic, since it really is generic and not platform- > specific? We moved the CSM infrastructure under OvmfPkg because IntelFrameworkPkg / IntelFrameworkModulePkg were slated for removal, and this was how we could salvage the CSM: https://bugzilla.tianocore.org/show_bug.cgi?id=3D1811 We could likely move it out of OVMF, but if the destination is still the edk2 tree -- which I would strongly prefer, as long as we support the CSM at all --, then it will take a new top level directory (CsmPkg, for example). No other package maintainer was willing to maintain the CSM, and even under OvmfPkg, I agreed to it only if you'd assume its reviewership. So now you'd likely have to introduce CsmPkg, and become its sole (or primary) maintainer. I'm 100% OK with that. (Both as OvmfPkg co-maintainer, and as one of the stewards that might have to ACK (I think?...) the creation of another top-level directory). Thanks Laszlo