Message ID | 20221109145156.84714-7-pbonzini@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp378710wru; Wed, 9 Nov 2022 06:55:42 -0800 (PST) X-Google-Smtp-Source: AMsMyM77KWL61zl1c+cSyYw1dQDcqvfQaCzVBpEGtm+hGHO/JYE2n3Dlet7EH0PTfjsKI1c8JvhB X-Received: by 2002:a17:903:41ca:b0:186:a68e:c06d with SMTP id u10-20020a17090341ca00b00186a68ec06dmr59656062ple.61.1668005742162; Wed, 09 Nov 2022 06:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668005742; cv=none; d=google.com; s=arc-20160816; b=KSckizqSOWJT9W6FGyVKkKWldUyxQW5JweJaVPKBc13Od6YJovEZ6y0ZeDgrTgapw3 r0iPPU/Q2G4HDJoJv3kTkJqIuX+sDNJ/oiqqCmZ+OkpsHggv3RIZNbXTOGOHQKSzSDXo WRIB3VznH2BtM68stIzW09KJZGoY18dTg0ir4KHahZahv9AAq/xhUTc89HP+DQYegNiW jA0QLZ/ATSBtfZguqkx9BNiegmRKY2HpHAoUhKlR/Gu224sbhOiTHlLx6ljZCO1m8Rct 6i3muB1iJ5bpM4bP8rJ1RusceXI03tTAfctLqOFe4yOsPQOejURFqMdi8OpARPG7KMJF 6XcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JfGc94yDCYYRgk+7bcbb2irw9WkuzsZKJSFm7OF1c40=; b=N/RKHNOzYxAzrltennQ+81uDCFf5HNkiWWdazs+llajlE/bVrNx0aMNGCj5k7ChOFB PfDnVtQvMEgpdbafEwSWBkaKR9eusu4R8gSCMN4l/pKvRJKnGxwME28q3OAWBDW7Xjpk lUzXnWdQnDoDi+3K2Wd8QYF7WtR4EOqKARIAb8zjLnQRMLPZSaJqzNjzHFukVj0z3IOX I7OUYUtiRYTMlLnQV0QGaC97ctS2mg5XwIqHkDtK5KE/vd939oVcBJ1Mfs3osOKaUdum D+sVl6p/3voxG67ZwbPw2sX0X/MvNLDOxB3zLlVYWjlIe5amA7wPK8jIf197k3kkFGp+ +GTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HauNL3oR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b20-20020a170902d89400b001784b572d3csi16376432plz.525.2022.11.09.06.55.28; Wed, 09 Nov 2022 06:55:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HauNL3oR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230118AbiKIOyV (ORCPT <rfc822;dexuan.linux@gmail.com> + 99 others); Wed, 9 Nov 2022 09:54:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231634AbiKIOyE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 9 Nov 2022 09:54:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40B1C1CFCB for <linux-kernel@vger.kernel.org>; Wed, 9 Nov 2022 06:52:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668005523; 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=JfGc94yDCYYRgk+7bcbb2irw9WkuzsZKJSFm7OF1c40=; b=HauNL3oRBQYuOU+zDOgNUCBvO5ZVTpTpaqQPqS5SCtf+AuzC37OQzo4wL+mHa6rnV13j/p IdLbTTwExseG8OH2DvH2vMbSEdenrwgNDqxK4Yp4Y/KavgbdyRZiNCYbP4WyNQ6oARQwrS CnOyZJMronlQ7o1fYIGmkk8wPv1NG+U= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-584-AtTefpjtOQyA_deK8dOVHw-1; Wed, 09 Nov 2022 09:51:59 -0500 X-MC-Unique: AtTefpjtOQyA_deK8dOVHw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DAD062815213; Wed, 9 Nov 2022 14:51:58 +0000 (UTC) Received: from virtlab511.virt.lab.eng.bos.redhat.com (virtlab511.virt.lab.eng.bos.redhat.com [10.19.152.198]) by smtp.corp.redhat.com (Postfix) with ESMTP id B25BF140EBF5; Wed, 9 Nov 2022 14:51:58 +0000 (UTC) From: Paolo Bonzini <pbonzini@redhat.com> To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: thomas.lendacky@amd.com, jmattson@google.com, seanjc@google.com Subject: [PATCH 06/11] KVM: SVM: remove dead field from struct svm_cpu_data Date: Wed, 9 Nov 2022 09:51:51 -0500 Message-Id: <20221109145156.84714-7-pbonzini@redhat.com> In-Reply-To: <20221109145156.84714-1-pbonzini@redhat.com> References: <20221109145156.84714-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749030789493501665?= X-GMAIL-MSGID: =?utf-8?q?1749030789493501665?= |
Series |
KVM: SVM: fixes for vmentry code
|
|
Commit Message
Paolo Bonzini
Nov. 9, 2022, 2:51 p.m. UTC
The "cpu" field of struct svm_cpu_data has been write-only since commit
4b656b120249 ("KVM: SVM: force new asid on vcpu migration", 2009-08-05).
Remove it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
arch/x86/kvm/svm/svm.c | 1 -
arch/x86/kvm/svm/svm.h | 2 --
2 files changed, 3 deletions(-)
Comments
On Wed, Nov 09, 2022, Paolo Bonzini wrote: > The "cpu" field of struct svm_cpu_data has been write-only since commit > 4b656b120249 ("KVM: SVM: force new asid on vcpu migration", 2009-08-05). > Remove it. > > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> > --- Reviewed-by: Sean Christopherson <seanjc@google.com>
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 0c86c435c51f..0f873b298931 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -665,7 +665,6 @@ static int svm_cpu_init(int cpu) sd = kzalloc(sizeof(struct svm_cpu_data), GFP_KERNEL); if (!sd) return ret; - sd->cpu = cpu; sd->save_area = alloc_page(GFP_KERNEL | __GFP_ZERO); if (!sd->save_area) goto free_cpu_data; diff --git a/arch/x86/kvm/svm/svm.h b/arch/x86/kvm/svm/svm.h index 626240707ba9..7540db9902a6 100644 --- a/arch/x86/kvm/svm/svm.h +++ b/arch/x86/kvm/svm/svm.h @@ -280,8 +280,6 @@ struct vcpu_svm { }; struct svm_cpu_data { - int cpu; - u64 asid_generation; u32 max_asid; u32 next_asid;