From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 5CC1D8225A for ; Wed, 22 Feb 2017 21:11:24 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Feb 2017 21:11:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.35,197,1484035200"; d="scan'208";a="68033299" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 22 Feb 2017 21:11:23 -0800 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 22 Feb 2017 21:11:23 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 22 Feb 2017 21:11:22 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.88]) by SHSMSX104.ccr.corp.intel.com ([10.239.4.70]) with mapi id 14.03.0248.002; Thu, 23 Feb 2017 13:11:21 +0800 From: "Shi, Steven" To: Laszlo Ersek CC: edk2-devel-01 Thread-Topic: [edk2] Testing SMM with QEMU, KVM and libvirt Thread-Index: AQHSgUMsHWoRuGbwL0GxMXXTDTVPFKFzQoNQ//+MggCAA1OVUA== Date: Thu, 23 Feb 2017 05:11:20 +0000 Message-ID: <06C8AB66E78EE34A949939824ABE2B313B498EBA@shsmsx102.ccr.corp.intel.com> References: <06C8AB66E78EE34A949939824ABE2B313B495660@shsmsx102.ccr.corp.intel.com> <8ab05f72-c7b9-82cd-049e-ab451d804a00@redhat.com> In-Reply-To: <8ab05f72-c7b9-82cd-049e-ab451d804a00@redhat.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: Testing SMM with QEMU, KVM and libvirt X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2017 05:11:24 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Laszlo, I want to see the serial debug output and hope to save it to a local file. = How could I update the ovmf.fedora.q35.template to define it? Steven Shi Intel\SSG\STO\UEFI Firmware Tel: +86 021-61166522 iNet: 821-6522 > -----Original Message----- > From: Laszlo Ersek [mailto:lersek@redhat.com] > Sent: Tuesday, February 21, 2017 6:18 PM > To: Shi, Steven ; edk2-devel-01 devel@ml01.01.org> > Cc: Tian, Feng ; Justen, Jordan L > ; Yao, Jiewen ; Kinney, > Michael D ; Fan, Jeff ; Z= eng, > Star > Subject: Re: [edk2] Testing SMM with QEMU, KVM and libvirt >=20 > On 02/21/17 10:22, Shi, Steven wrote: > > Hi Laszlo, > > I wonder if you could offer a Ubuntu version wiki for the > > Testing-SMM-with-QEMU,-KVM-and-libvirt? >=20 > Sorry, I can't do that. >=20 > To give you a retrospective on the current article (which targets > Fedora), writing and testing that article took ~14 hours, on an > operating system that I'm both familiar with and can readily install in > our internal server farm (called "Beaker"). >=20 > My method was to start with a wiped-clean physical machine, install a > fresh, clean Fedora system, and build it all up from there. I wanted to > make sure that all missing dependencies would be thrown in my face, so I > could explicitly document them for readers. >=20 > This approach paid off very well (it caught a whole lot of dependencies > that I "thought" would be available by default, but weren't!), but it > was also the *primary* time sink while writing the article. >=20 > "Porting" the article to another Linux distribution would mean an almost > complete rewrite. The package names are different, the package contents > are different, the package inter-dependencies are different, the > virtualization tools may have different versions available, the generic > tools may be different, and so on. >=20 > > I'm trying to port your > > steps to my Ubuntu 16.04, but meet lots of troubles. The Ubuntu > > apt-get virsh version is too old to support smm feature in your > > ovmf.fedora.q35.template, >=20 > That's *exactly* my point. >=20 > > and I have to build the new version libvirt > > by myself. I meet lots of failures when configure the new version > > virsh, and wonder if you could help. >=20 > Sorry, I don't have time for that. I don't know Ubuntu at all, have no > contact to Ubuntu developers, and cannot even auto-install Ubuntu easily > on a headless server in our internal server pool. >=20 > Frankly, one goal of using Fedora 25 for the host operating system was > *exactly* that the user could avoid this kind of struggle with the > virtualization toolstack, and they could focus on rebuilding *only* what > was unavoidable. >=20 > (It is bad enough that at the moment I must have instructions in there > for building QEMU from source -- once QEMU 2.9 is released and Fedora 25 > picks it up, I think I will go ahead and replace that section of the > article, with a simple package installation command. I'll also update > references elsewhere, such as in the domain templates.) >=20 > So, unfortunately, what you are asking for is a complete rewrite of the > article, for Ubuntu, which I don't know and have no access to, in the > isolated server environment that is necessary for writing and testing > such an article. >=20 > I'm not trying to "push" Fedora with this -- a fresh Ubuntu release > should be entirely suitable for this I *guess*, but the devil is in the > details, and you'll need an Ubuntu person, with a corporate(-like) > Ubuntu environment, to write that article for you. >=20 > I do confirm that I intend to support the Fedora setup with high > priority, so if you have questions about that, I'll do my best to answer. >=20 > Thanks, > Laszlo >=20 >=20 > > > > > > > > Steven Shi > > Intel\SSG\STO\UEFI Firmware > > > > Tel: +86 021-61166522 > > iNet: 821-6522 > > > > > >> -----Original Message----- > >> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > >> Laszlo Ersek > >> Sent: Tuesday, February 7, 2017 9:07 PM > >> To: edk2-devel-01 > >> Cc: Tian, Feng ; Justen, Jordan L > >> ; Yao, Jiewen ; Kinne= y, > >> Michael D ; Fan, Jeff = ; > Zeng, > >> Star > >> Subject: [edk2] Testing SMM with QEMU, KVM and libvirt > >> > >> Hi, > >> > >> I've added the following article to the TianoCore wiki: > >> > >> https://github.com/tianocore/tianocore.github.io/wiki/Testing-SMM-with= - > >> QEMU,-KVM-and-libvirt > >> > >> It should help both Windows and Linux desktop users build a KVM test > >> machine / environment that closely resembles mine. Such an environment > >> is useful for testing and regression-testing new MP and SMM features a= nd > >> bugfixes. > >> > >> The initial setup is not short, but once you got it up and running, it= 's > >> very simple to rebuild OVMF with the edk2 changes, install the firmwar= e > >> binary in the right place (see the article) and then click the Play > >> button on the Fedora 25 and Windows 10 guests, to see the changes in > action. > >> > >> If you have smaller updates or structural reorgs for the document, > >> there's no need to ask me, just go ahead and do them. > >> > >> If some significant information is missing that you'd like me to add, = I > >> think I'd prefer new TianoCore BZs at this time (Product: Tianocore > >> Feature Requests, Component: Web Content, Assignee: yours truly). I > >> don't know when I'll have time again to dig into this. > >> > >> Sorry if I forgot someone off the CC list. > >> > >> Thanks! > >> Laszlo > >> _______________________________________________ > >> edk2-devel mailing list > >> edk2-devel@lists.01.org > >> https://lists.01.org/mailman/listinfo/edk2-devel