Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5771442imm; Tue, 16 Oct 2018 16:14:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV63kjJ3IjXHpdgN7kBvTSYUhbzZ40xkqnd0nQJgkLdo/fXulrnCJTw/MrQFGVaF20WaLtR+0 X-Received: by 2002:a63:9a19:: with SMTP id o25-v6mr22115133pge.440.1539731657858; Tue, 16 Oct 2018 16:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539731657; cv=none; d=google.com; s=arc-20160816; b=SB8VaPNdup54hq02nsScVLMbwIA7LUIUlkZgwHlb8fU+xEAp4P5yhT++YFzFFf25oJ tynyBfq6Qf0uTDPazOMhdOjsj3MQk9YlP8t+eNVSJvVU8XJKtFvj8t+6/vpIvBlMHEX9 oVZ75FQa/OG1Xe7X0mjUggfeiFTPosVzwurwFWmxJQK3RlcN2944pqKlOKroE0k2oYti UU59CPmrXKQDo/WkS+dif8e1wlr1ukERteSxWLw0bOt8Llq/grQNvLMv6M1fy0mwHCNH KTqKMOVBL7Ssn3IQ3+kYZgiVe6+cH0X24et7bEaKJDy58Z795tGdIHVjAddf67w58lVC zXiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=gv/y8dToplbRvPfHS/sW1iB01Tc15hwyMkc6bXTSz0M=; b=k1W7waZRNW4ReZEjVUebUv0rOayELn2Xy0BH34yNGWwrcFFhAzaHCUfmjEqdvu61hK Au1rjVkphL0uNmu517WpQWDEXfaQAmYX/B0FXXe2n8m2U+P1dh+W9sBIzBRIJ3Iqa0wT Oxv1Nmcu1j69Uu0S3SI4yASYV1wjM1xSEtwU6LL/6ozMA5r7g0ufPM/c2GzK3/bxwLrU 7+ZbDM9qu6ArADmYRP2exMiG2KO6AcGkZjiNHRJI74goPpCth9J2tzeEcHXTCxL4IcZm F5QL0ZTRWlf9HGTTIEn+mkT6jOf/1p/wo+l+ToW8MaAC8t97fQZSgwxNEDmg/s5agih4 JkYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="rz/rV4hY"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6-v6si15831583pgg.182.2018.10.16.16.14.01; Tue, 16 Oct 2018 16:14:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b="rz/rV4hY"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727195AbeJQHGF (ORCPT + 99 others); Wed, 17 Oct 2018 03:06:05 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:42030 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726703AbeJQHGF (ORCPT ); Wed, 17 Oct 2018 03:06:05 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9GN8fJb032730; Tue, 16 Oct 2018 23:13:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=gv/y8dToplbRvPfHS/sW1iB01Tc15hwyMkc6bXTSz0M=; b=rz/rV4hYxt3usAmbwd24daX0Eg/YgU8nG+iq85vcAR0uGfZlCcf4Vxm/j+S7Iz1+tGYv MtKmkazpGKMQpiLpsTBgedlaCr3Eap1iTLsjoW8hBjD29HZp14khgSVHclQDrk/Lbal+ rB87TjIkAhyGvfrTRv/wa8daI8mUTAS6u4hf8NgKooymljvWjxTtzG02Xfy2VUdJiMAS sJnqVAqvGR8fZ+1fkhTZ0hQeDhwr0R45iv5HtNFek0EYNgjR5/uIxClbE+D3pY5hQLaQ wKHuMAjwOUwtfFdiqCE+nUQb/l4N1cXu97G5eniodMZergeu20pSScNlazoAItYKRo6G qg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2n39brbm7u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Oct 2018 23:13:20 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9GNDIOB014522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Oct 2018 23:13:19 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9GNDIwH007222; Tue, 16 Oct 2018 23:13:18 GMT Received: from [192.168.14.112] (/79.181.251.57) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 16 Oct 2018 16:13:18 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.1 \(3445.4.7\)) Subject: Re: [PATCH] KVM: VMX: enable nested virtualization by default From: Liran Alon In-Reply-To: <20181016225522.13077-1-pbonzini@redhat.com> Date: Wed, 17 Oct 2018 02:13:15 +0300 Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, jmattson@google.com Content-Transfer-Encoding: quoted-printable Message-Id: <1CB58AE6-8057-4D76-8EA5-C219326F3432@oracle.com> References: <20181016225522.13077-1-pbonzini@redhat.com> To: Paolo Bonzini X-Mailer: Apple Mail (2.3445.4.7) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9048 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810160193 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On 17 Oct 2018, at 1:55, Paolo Bonzini wrote: >=20 > With live migration support and finally a good solution for CR2/DR6 > exception payloads, nested VMX should finally be ready for having a = stable And good solution for setting/getting vCPU events from userspace with = correct pending/injected state. > userspace ABI. The results of syzkaller fuzzing are not perfect but = not > horrible either (and might be partially due to running on GCE, so that > effectively we're testing three-level nesting on a fork of upstream = KVM!). > Enabling it by default seems like a nice way to conclude the 4.20 > pull request. :) >=20 > Unfortunately, enabling nested SVM in 2009 was a bit premature. = However, Don=E2=80=99t you wish to mention commit which enabled it? > until live migration support is in place we can reasonably expect that > it does not offer much in terms of ABI guarantees. Therefore we are > still in time to break things and conform as much as possible to the > interface used for VMX. >=20 > Suggested-by: Jim Mattson > Suggested-by: Liran Alon > Signed-off-by: Paolo Bonzini > --- > arch/x86/kvm/vmx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c > index e665aa7167cf..89fc2a744d7f 100644 > --- a/arch/x86/kvm/vmx.c > +++ b/arch/x86/kvm/vmx.c > @@ -107,7 +107,7 @@ module_param_named(enable_shadow_vmcs, = enable_shadow_vmcs, bool, S_IRUGO); > * VMX and be a hypervisor for its own guests. If nested=3D0, guests = may not > * use VMX instructions. > */ > -static bool __read_mostly nested =3D 0; > +static bool __read_mostly nested =3D 1; > module_param(nested, bool, S_IRUGO); >=20 > static u64 __read_mostly host_xss; > --=20 > 2.17.1 >=20 Woohoo! :) Reviewed-by: Liran Alon