Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2654817pxu; Mon, 14 Dec 2020 07:49:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLiOHSaXzKoL/D2NijZv2HOwa7klwz/ZP4AvJcqxZ/jVCsd9/fq6gVJ2VszJHuq6jLkHQH X-Received: by 2002:a17:906:cc9c:: with SMTP id oq28mr12685725ejb.224.1607960980895; Mon, 14 Dec 2020 07:49:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607960980; cv=none; d=google.com; s=arc-20160816; b=EvIsR5m8SLxdAqlYVbeR3OUhIawgadAj+TlRXd4mzA/bdcXBVnhwXQQWiIDuLqfBw6 VSCek/c+79117yLDFwcjkIf6UrgjxxesTde6EV/iynMCU6DqVwg72F4mnCn7ZNL4CEup x0qIi8+yUGh4REF2uLnaehhJj1Gw+3ft8wSYsRc148vgA/20herWhGFjOIP5y1/NP5rg HMMtli1gx0sx4ac++pJYTNzndu9pxQCryAwlQjGsKNIrRtT6h619TXr68Ky//oPrownA bA8QXZPD4eEO9owtNeDJ2Bu0PyobU4gpNCpC7TrxBc153+qTmi92GTRKew7QtnLJbn/8 W96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=Q/TCYNi4E3ahh+03JvG8chNRF5b2PxF2LEjxnN0TOPY=; b=OUMipSTajrKh62r3zyYSFVC8fAiTyny39ey/yxuOl1l+3rgza/z+XjNdZp11Xgc6pS nyWzYYPM8XZrNZN97JKVmBOfsRFSJPER+rNCw5pWrweeqL5EntjNahv6TBnfKln7w8si 6+ZQ2trV/sSNNJBRJAL66qL0chehQFqI7LF9TpojY5OXfJWwUlMa7zpyD3xUEw16SNls 77JqCCLEM7oNdWaHPVK+SHaeF7XXE93wJNcGH6cXMFXaYeb8Zhb/I9kScA3/zfwThvc9 9kAmCbFnnFiAIaj+1RIige65MisSnhK5Xs+M2ldAgYltoejy0dd0+IqLpEG1U8JsZxIt fl5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CI0K71TH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i1si10548459eds.174.2020.12.14.07.49.17; Mon, 14 Dec 2020 07:49:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=CI0K71TH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438762AbgLNPq5 (ORCPT + 99 others); Mon, 14 Dec 2020 10:46:57 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:38017 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729628AbgLNPq4 (ORCPT ); Mon, 14 Dec 2020 10:46:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1607960730; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Q/TCYNi4E3ahh+03JvG8chNRF5b2PxF2LEjxnN0TOPY=; b=CI0K71THknRY9HyOrCipdH2q78BM3/b3HW/ViYoYnOtRRmHW2ClKKiiZgIBqXvOO6GaZZ6 5zJneYJ76PjzUWJnHbO2RIy4qWgIE4vMpSAGApQLI6u8tVx+OmpeE8shYjWfWja35RZNK1 h/Wd1H0kTiA4116mYfaO34GCCR9Lj6o= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-62-HDLaRYMKP_OSYL83QJhsrg-1; Mon, 14 Dec 2020 10:45:28 -0500 X-MC-Unique: HDLaRYMKP_OSYL83QJhsrg-1 Received: by mail-ej1-f69.google.com with SMTP id n17so4676484eja.23 for ; Mon, 14 Dec 2020 07:45:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Q/TCYNi4E3ahh+03JvG8chNRF5b2PxF2LEjxnN0TOPY=; b=M+fbFecW3nH3D6v7IXxnwha3PC2UOdnenHMARg+qypLLk58nCQmKlBZdQQGiJGCp2U eQ4R62OAVg0OYO/MzsA36Mkt5+1KUDUc0l6x3F/q7jrD//Bwx/5kyF4dnr4Fg3GkXVpo yxdAdkfQIwK3/f4RQUpvdREsYJDGw+o5EVJmHpIcP6nf5fcO0Yht+l6eMx8OmephAYOX R9nA1xPoMUNcPFPZEWxredi6W2rI2BpBI36XD9mK7+wsroawPxn/FWssaWG+dJpApzys PPycNk6Px0rkGb07adjUz9WqtqWWOQbTFfoQegbteCSE+6APD5+FRvhGs1Bzww7pnTEG WhkA== X-Gm-Message-State: AOAM531Tnl3Kf6owYDTBuCvPPxYNuSp1KjCWFrfrZHbPTVukRzH4oRzz pV5ONWGlVvUYSNV+X6P+xfsxOFmuk1BaLTfOVCrsSdkkyVeQ6y/QuPqIcymvf0viK2n6bUn5byV jsS2Itl2IVZeUk+ouRQqqSEbO X-Received: by 2002:a17:906:4058:: with SMTP id y24mr22357092ejj.245.1607960727147; Mon, 14 Dec 2020 07:45:27 -0800 (PST) X-Received: by 2002:a17:906:4058:: with SMTP id y24mr22357066ejj.245.1607960726917; Mon, 14 Dec 2020 07:45:26 -0800 (PST) Received: from ?IPv6:2001:b07:6468:f312:c8dd:75d4:99ab:290a? ([2001:b07:6468:f312:c8dd:75d4:99ab:290a]) by smtp.gmail.com with ESMTPSA id s6sm14003838ejb.122.2020.12.14.07.45.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Dec 2020 07:45:26 -0800 (PST) Subject: Re: [PATCH v5 12/34] KVM: SVM: Add initial support for a VMGEXIT VMEXIT To: Tom Lendacky , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org Cc: Jim Mattson , Joerg Roedel , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Borislav Petkov , Ingo Molnar , Thomas Gleixner , Brijesh Singh References: From: Paolo Bonzini Message-ID: <7bac31c8-a008-8223-0ed5-9c25012e380a@redhat.com> Date: Mon, 14 Dec 2020 16:45:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/20 18:09, Tom Lendacky wrote: > @@ -3184,6 +3186,8 @@ static int svm_invoke_exit_handler(struct vcpu_svm *svm, u64 exit_code) > return halt_interception(svm); > else if (exit_code == SVM_EXIT_NPF) > return npf_interception(svm); > + else if (exit_code == SVM_EXIT_VMGEXIT) > + return sev_handle_vmgexit(svm); Are these common enough to warrant putting them in this short list? Paolo > #endif > return svm_exit_handlers[exit_code](svm); > }