From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 30DD721D492F0 for ; Thu, 14 Sep 2017 06:27:46 -0700 (PDT) Received: by mail-wr0-x22a.google.com with SMTP id z39so329645wrb.8 for ; Thu, 14 Sep 2017 06:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7PlaEDs+/fBFN3xYQrn+JF6FnB1R+MEvEbFp72fih7Q=; b=HRha07AQLmIT1DFc+oGwzbfDysy+mJ9i/HOWzS1w3E7n1YLXGSswPHyD12S585cfgt ON0LhtcZC+0vU8cAp9OhzumwT0KxLQtJz9WfmPlrZcSLHd0/iAsojxO+iOnJCUlkrKhS iupQJJUGpsKR82MMvgN8svCH9zu1/2z+3phqZl41J8NOZFau7PLeqOqEAibZfeJpHHy9 ilUPuo2ms8tx/7oCf9UFyHLS1xQy0RyRPNON22GiZQt+O1lN8i50HIPyxaz+2Py9sVvy uyefOlgqd6a7XvwdbPR8Z6V5PFd5FrQ9pZ7OVFoVgHJqxf1AKbPIJejIUsLgepgRPJmd hxjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7PlaEDs+/fBFN3xYQrn+JF6FnB1R+MEvEbFp72fih7Q=; b=lzs9tmoAG2YqcZg/7lGd5rP8Aqj8/+Q6Yr73TulgHR31V45x7r0IpOUiGcXcjMRjhm MPqGC0rpqqDp5NN8jWuDx0Tb+/LYNWEHaQ1olO58v3t2i+CpA+5l8u/r7iJ5Y2IyWl1r A+Ss1cmmwQ85YV8kzdrn/B2XIKh/pkkHRrDfAbSRbr0E4eG1NDHLBK2TT6h0NAUHdcp5 zK6LcYndd62af7142lwbTSrYLsZh0zUkGlxuCqy75njMbqsiwd1FXKpbYW9XynNPxn9t VE4O7QHfQ6kK6j3CaqapBwHGTuKgVonpRL1lOkMwfOjFpO3vaqpjdd8D3O8H11f9BR/x zZJA== X-Gm-Message-State: AHPjjUg5kbcRNaCLjMeInXVyBPqYtxuWvykzaB/DBjAv9kQW1Zz5dmVx H9ojLufuEmCRzAKAWB2RCszU6YAze7+NzUN+68g= X-Google-Smtp-Source: ADKCNb7sqmaYmWSYpzPgKjTWHa2nRFsRFJSG2DwY66J5JWQ53nzP3QE4JznP5XjMPSHVsZa6jCbA1P+7ANURcVbt5Dw= X-Received: by 10.223.170.155 with SMTP id h27mr17882171wrc.95.1505395843713; Thu, 14 Sep 2017 06:30:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.150.169 with HTTP; Thu, 14 Sep 2017 06:30:23 -0700 (PDT) In-Reply-To: <99efd8c4-4450-7904-3622-24219d94add5@redhat.com> References: <99efd8c4-4450-7904-3622-24219d94add5@redhat.com> From: Patchmail Date: Thu, 14 Sep 2017 09:30:23 -0400 Message-ID: To: Laszlo Ersek Cc: edk2-devel@lists.01.org, Ladi Prosek , Eduardo Habkost X-Content-Filtered-By: Mailman/MimeDel 2.1.22 Subject: Re: EDK2 + VT-x X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Sep 2017 13:27:46 -0000 Content-Type: text/plain; charset="UTF-8" Laszlo, Thanks a ton, that solution worked. In addition to that, I added 'nested=1' to the kernel flag for kvm_intel and changed virt-manager to match the host cpu profile rather than using host-passthrough. I really appreciate the help and am thankful people like you guys are around working on these kinds of projects. David Napier On Thu, Sep 14, 2017 at 5:23 AM, Laszlo Ersek wrote: > CC Ladi and Eduardo > > On 09/14/17 02:54, Patchmail wrote: > > I cannot find anywhere how to enable VT-x in OVMF, if anyone can point me > > in the right direction, I'd greatly appreciate it. > > If you are looking to do nested virt with OVMF, first of all I recommend > the following blog to your attention: > > https://ladipro.wordpress.com/ > > I think Eduardo must have a bunch of blog posts on CPU models as well: > > https://habkost.net/ > > > Second, if you add the +vmx flag to your CPU model on the QEMU command > line, or in the libvirt domain XML, then QEMU will expose that to OVMF > in a dedicated fw_cfg file ("etc/msr_feature_control"), and OVMF will > set the Feature Control MSR accordingly, on all the CPUs in the guest. > > Please refer to the following: > > - TianoCore BZ > > - edk2 commit dbab994991c7 ("OvmfPkg/PlatformPei: program > MSR_IA32_FEATURE_CONTROL from fw_cfg", 2016-07-07). > > > IOW, with the caveats described in Ladi's and Eduardo's blogs, just add > the +vmx flag to your CPU model, and you should be good to go. > > Thanks > Laszlo >