Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp363809pxb; Wed, 6 Oct 2021 06:40:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPoB6wdlbIXx/IMxfyUtLvDeJtWN7yAm46EHJ2F8Dze6OaA0ne3xjQqknRtcdcvSizedif X-Received: by 2002:a17:902:9b95:b0:13e:c43:2b57 with SMTP id y21-20020a1709029b9500b0013e0c432b57mr11296154plp.42.1633527600113; Wed, 06 Oct 2021 06:40:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633527600; cv=none; d=google.com; s=arc-20160816; b=hi8bzOj4fnA88NL5/OhSkHXE2RyDBSQZwX4vBQbmCkfmDb+B+XAuLeCoZ8cR2SkDFp jKf81QDvFVeguXaKgWQ9w+/gPOHQ1/sPNC2cddp8hE/iNRtdn2W4pUgPOx0SGVXZamnl q+FUxje01PtjW3cNvo5+FHgcg5AJ8LCrgX7nzBPwfazccEAZcoYDyEr1FtW0oe3dMdzs Hj4O5aDE4JRG/HhgSqkbespioaZ0FjC/Qa1zzg2WSAx4fgUYvJrxMkmeWein/2/1Ef1K QMc81pyecbuWT10QFL356r8YJ2E4/kvtayOsof4ERtl3vDZLvTxCPE3wygTM2Yth9LRm BuWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=H1r1X4bOpqP9McySpdOj88aq9sWNjOIuSeMOSdgf+nE=; b=C/EdQPATUJI8JuCW9lUYjWx7x9hVtyg4CFQxrDEh2RJ47EQOWS1Q1QU1LcpkjC1lK3 xoofFqNFSGAZQnqqMLrMXKsJ1cdWbRapvdOFTOSWPco/ubEl/JnBDnwghX7soGeNZmyA 1NIVG8q6JchRxCrAXRHwWr9l2qgG9ZQWmYcVVLkzmSHFkfW78czSsrRupsiNjWNmIx72 5Rbv5qjou8JQc6bPDNWVAkSmqrky6E29Q1efdDCqnnJCd4JYqB/SgTlePE25wT97woKn KH3er6rBOPGP8/GV4AwcoAx0SYTKTmOG6Vl6JquymEpOwc1iVqduq3BcvFxwQHk7CPWK toWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fLoCIZ3y; 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 q8si26835970plr.449.2021.10.06.06.39.46; Wed, 06 Oct 2021 06:40:00 -0700 (PDT) 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=fLoCIZ3y; 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 S238922AbhJFNix (ORCPT + 99 others); Wed, 6 Oct 2021 09:38:53 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:21618 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238923AbhJFNil (ORCPT ); Wed, 6 Oct 2021 09:38:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1633527408; 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=H1r1X4bOpqP9McySpdOj88aq9sWNjOIuSeMOSdgf+nE=; b=fLoCIZ3yndHO0ITaWsU/4mKaXDmePSR7zL9cj9Tyuhil6XGYNdZ54GP+AMDLq8jzx125VR IPSso7s0HiVzzXvummGT3siMu9oYiMZcBpgICQrT6CBl/51eVVxXEg0cWqf9z0/XF5Tz3C 66JzvqTLWsq61eWoIrbcl//zsefHzNw= Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-171-WOdtXr8dNAm63KNLOgVQwQ-1; Wed, 06 Oct 2021 09:36:47 -0400 X-MC-Unique: WOdtXr8dNAm63KNLOgVQwQ-1 Received: by mail-ed1-f70.google.com with SMTP id bo2-20020a0564020b2200b003db3540f206so2452379edb.23 for ; Wed, 06 Oct 2021 06:36:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=H1r1X4bOpqP9McySpdOj88aq9sWNjOIuSeMOSdgf+nE=; b=uUftXQMuqqr/cYQI1uxC65XqmP/mvFcN4N9dsu38lmaF3Pj/hAEsHcIgUdXkOITYSJ aoQNlK6cqYHn6ErUrARKQBu4MC0jJ7Oui3n2JciA4aod253eA1bQzfCYf4E8gNSodvsT xw1s4DtWZ/vm6/AR5XZk4zZ+9/GSLCIRW54GrK4IHvgC70gUim/+ei3cYcce0FGBhe8u 4/n0mXVT8NuGLE4kSOggX/N36s1OXCwYSYq+NB6h5ny3uEr9yXsKMxi6+GsEqgsrJvX8 E+qUDWOD4MIWQ76gaCmHUk7ftojQPhbCeyLKRqqNEGZQsl4WCZ8PB45UpRZlUBsQEt8s qEzA== X-Gm-Message-State: AOAM5313943H0kjeNrVWP57RkOUKSwp8bs3GsR/xnfrkibySEV0MfaSI gWKZOMkzyMdIFoEJQxwlfX72r/iwjy3TQx4JDCxvjvJJNtjeW/xzMxREM8QbA92061PZUnwOnmN CddlX/U+Ygr+3znUMDUJOwLCv X-Received: by 2002:a17:906:6558:: with SMTP id u24mr32986831ejn.361.1633527406643; Wed, 06 Oct 2021 06:36:46 -0700 (PDT) X-Received: by 2002:a17:906:6558:: with SMTP id u24mr32986801ejn.361.1633527406407; Wed, 06 Oct 2021 06:36:46 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e? ([2001:b07:6468:f312:5e2c:eb9a:a8b6:fd3e]) by smtp.gmail.com with ESMTPSA id g10sm8874810ejj.44.2021.10.06.06.36.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 06 Oct 2021 06:36:45 -0700 (PDT) Message-ID: <36ee367e-3575-a237-991e-4cab07ce7041@redhat.com> Date: Wed, 6 Oct 2021 15:36:44 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Subject: Re: [PATCH MANUALSEL 5.14 8/9] KVM: x86: nSVM: restore int_vector in svm_clear_vintr Content-Language: en-US To: Sasha Levin , linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Maxim Levitsky , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, kvm@vger.kernel.org References: <20211006133021.271905-1-sashal@kernel.org> <20211006133021.271905-8-sashal@kernel.org> From: Paolo Bonzini In-Reply-To: <20211006133021.271905-8-sashal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/10/21 15:30, Sasha Levin wrote: > From: Maxim Levitsky > > [ Upstream commit aee77e1169c1900fe4248dc186962e745b479d9e ] > > In svm_clear_vintr we try to restore the virtual interrupt > injection that might be pending, but we fail to restore > the interrupt vector. > > Signed-off-by: Maxim Levitsky > Message-Id: <20210914154825.104886-2-mlevitsk@redhat.com> > Signed-off-by: Paolo Bonzini > Signed-off-by: Sasha Levin > --- > arch/x86/kvm/svm/svm.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c > index 69639f9624f5..19d6ffdd3f73 100644 > --- a/arch/x86/kvm/svm/svm.c > +++ b/arch/x86/kvm/svm/svm.c > @@ -1601,6 +1601,8 @@ static void svm_clear_vintr(struct vcpu_svm *svm) > > svm->vmcb->control.int_ctl |= svm->nested.ctl.int_ctl & > V_IRQ_INJECTION_BITS_MASK; > + > + svm->vmcb->control.int_vector = svm->nested.ctl.int_vector; > } > > vmcb_mark_dirty(svm->vmcb, VMCB_INTR); > Acked-by: Paolo Bonzini