From patchwork Tue Mar 22 17:24:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Levitsky X-Patchwork-Id: 12788847 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1902AC433EF for ; Tue, 22 Mar 2022 17:25:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239613AbiCVR0d (ORCPT ); Tue, 22 Mar 2022 13:26:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239606AbiCVR0b (ORCPT ); Tue, 22 Mar 2022 13:26:31 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 42E7343ED0 for ; Tue, 22 Mar 2022 10:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647969902; 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; bh=d/udLuXKSWOMorDJxeIAomujXKFt54BD9zHjc4cWDSM=; b=Ho8SApxFWXoymdvc9onDwIgMI7+EzMlVzKZ9+zm4/It34RSzGlbmXMnU/vdvSj79WGD6wR rDiaepy4b/wcHGzHftVHQjKalJAA21EVeEr1/GVrm7747SSSZ9FEgpOAbYwty/wekeRTms fiCxkmGpMjx6Y0sdyvitkkCgGgyO8hI= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-358-6IBAYFBMMQGbGS6vqWS_fw-1; Tue, 22 Mar 2022 13:24:59 -0400 X-MC-Unique: 6IBAYFBMMQGbGS6vqWS_fw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 91E05802809; Tue, 22 Mar 2022 17:24:58 +0000 (UTC) Received: from localhost.localdomain (unknown [10.40.194.231]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1E9B72166B44; Tue, 22 Mar 2022 17:24:49 +0000 (UTC) From: Maxim Levitsky To: kvm@vger.kernel.org Cc: Jim Mattson , Paolo Bonzini , Wanpeng Li , Borislav Petkov , Joerg Roedel , Ingo Molnar , Suravee Suthikulpanit , x86@kernel.org, "H. Peter Anvin" , Dave Hansen , linux-kernel@vger.kernel.org, Sean Christopherson , Vitaly Kuznetsov , Thomas Gleixner , Maxim Levitsky Subject: [PATCH 0/8] SVM fixes + refactoring Date: Tue, 22 Mar 2022 19:24:41 +0200 Message-Id: <20220322172449.235575-1-mlevitsk@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Those are few bug fixes which are in my patch queue, rebased against current kvm/queue. Best regards, Maxim Levitsky Maxim Levitsky (8): KVM: x86: avoid loading a vCPU after .vm_destroy was called KVM: x86: SVM: use vmcb01 in avic_init_vmcb and init_vmcb kvm: x86: SVM: use vmcb* instead of svm->vmcb where it makes sense KVM: x86: SVM: fix avic spec based definitions again KVM: x86: SVM: move tsc ratio definitions to svm.h kvm: x86: SVM: remove unused defines KVM: x86: SVM: fix tsc scaling when the host doesn't support it KVM: x86: SVM: remove vgif_enabled() arch/x86/include/asm/svm.h | 14 ++- arch/x86/kvm/svm/avic.c | 2 +- arch/x86/kvm/svm/nested.c | 179 +++++++++++++++++++------------------ arch/x86/kvm/svm/svm.c | 46 ++++------ arch/x86/kvm/svm/svm.h | 23 +---- arch/x86/kvm/vmx/vmx.c | 7 +- arch/x86/kvm/x86.c | 14 +-- 7 files changed, 134 insertions(+), 151 deletions(-)