Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp300796rdb; Tue, 31 Oct 2023 07:56:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHUoGTqO1S47NsbIAD2E0d7myfsOC8I8+WfPdBM6Z90tfTSWWAH9sxGHzK7939+lNVtK6zY X-Received: by 2002:a17:90a:b783:b0:27e:3009:3033 with SMTP id m3-20020a17090ab78300b0027e30093033mr9232483pjr.39.1698764212723; Tue, 31 Oct 2023 07:56:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698764212; cv=none; d=google.com; s=arc-20160816; b=W7OKBWkEWFLh05ueCTwcStTKaLfymQEjGyBqXolACUwhQ9OaUlPpEE9qIBts3NUl+m 1ES6JpMqfdAhqZaM8kBl0LbEOrOA05B9J5NQ6L5lxu0fJke505Ow/JhBcEH806xoTS+L b+xwWlytIdty5LnxVFTwPbXH3dsVavEP7XwlWdGZBRAKV30Sdd8j6L8xZqAOUl8+TPxr 0O2ZC7VOV0rb03pQrg1g7yKiBpWDaZtf+ZY5G9o36QicCxIEgsg0W1zpa1dx6GC1Tw2q /rpYQX/R+NsmtFcOibQMigRWG0qS+98eGsQ3g7o9nHbpbaPbpwypO/f/3CkeyL0VGQjL 8grQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1YCRruDl6OMQ5U1GQ6BskW58Z9wjcFbobewT68lDnqA=; fh=qaYm4b6GKYlZ0T3gtLZ7fjEfCEC8jMv5XzYe6fOhw1Y=; b=BDqxeQ9R0v6TTeXvoms/mkO7yLHJeQob6dQ2cKy0YaguDqYh3YEygoV9ihTuY1naWF fANnyjCMqZh2niHX3jj0nSJzXFcr25IcE0QSQtfZG8RBOFYbqz0f9Q3zGc2tzPPcNc6M 2R09O9TRxouPpjmlDbpG6dvjw0I5HPf3Y0QbgB9QsrOpXhnnPRJPa7Z7LSUHazNxlY/2 +rrcd3H+2zGL4DavzPiITQApTNWBQwNzjjbvCWIbNd0Hu4g/jf4+kxPGakZwIsnnueG3 5AL3tcdp6ZMfEaFX6fsjUDdM1xYRMKa0yQbzh4/KdMpmnaza+HnXwUFfnvVkjdq+rrp/ SUkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GTKZj3rE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id ls11-20020a17090b350b00b00280281c4acesi1080976pjb.45.2023.10.31.07.56.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Oct 2023 07:56:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GTKZj3rE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 805AE80C4D41; Tue, 31 Oct 2023 07:56:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344388AbjJaO4n (ORCPT + 99 others); Tue, 31 Oct 2023 10:56:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344312AbjJaO4m (ORCPT ); Tue, 31 Oct 2023 10:56:42 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72934ED for ; Tue, 31 Oct 2023 07:55:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698764147; 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=1YCRruDl6OMQ5U1GQ6BskW58Z9wjcFbobewT68lDnqA=; b=GTKZj3rE42Ym4MDkSvmztVBYbhFzTJKEEbo83b1nFdaxfLNwu5nh3TpacdFYHLBSjuDpeZ 3RBC9CX7mXTvTRZhGY0ko+b4lprNAARO9b9YtO+svxnl6FZ+U/iz5Bm658RfA4iJvsnjO4 YbmH+R9l2XSQNYaz/z5sNxFyq/3wM4s= Received: from mail-ua1-f72.google.com (mail-ua1-f72.google.com [209.85.222.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-241-OWlq8SlRObyoFGzDN2TBkg-1; Tue, 31 Oct 2023 10:55:31 -0400 X-MC-Unique: OWlq8SlRObyoFGzDN2TBkg-1 Received: by mail-ua1-f72.google.com with SMTP id a1e0cc1a2514c-7abdebc829aso1419742241.0 for ; Tue, 31 Oct 2023 07:55:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698764130; x=1699368930; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1YCRruDl6OMQ5U1GQ6BskW58Z9wjcFbobewT68lDnqA=; b=ZRX9QAqSvwuvBAkjYXxSdihjxgJTF54hm7aALsM5AXyXKhlBdx9yj1hip4GEboIYmD Elg1CPANQnjll+EIxd/qi7ZrwyqkFl4zji/TBvnelXqS2mKVbJ/Qh6jR6+OKQ12ANSM8 Jy+8dGgovWcuqhmLGN28HElttoLOhcyD8VX7wdKkU1kGnu13XCntfF9A64K/AGVuLb0x FoiY3zrOI7ntvFlsbCYg/+dJBR6q06ZQCH2KmhTMgSq40Kv+qpGt2/a0UxGzV8ng4bjN zkW65bKkVgu5zF0i7W+/fIiadtHPayqOXNiA0ra0ud80MsSLpUyhgQd25jGaB6TBHUhv XF7w== X-Gm-Message-State: AOJu0YwgOoqJkitmd/JraBaFtAuiSj0MZm3IMJjh9S9moAz5xMMOjPoK 7e0+fWMUHthO18mBhhL66shKNByFwqfW24kHCc+VMmCunnSPzU4xjGHpaEktwwdZtSA1fhvJBBf C+Ntv805McFFoRPRJ+eUt1Vjhd9MMl1mKRHDymmU8 X-Received: by 2002:a67:c29c:0:b0:457:fbe2:b8f with SMTP id k28-20020a67c29c000000b00457fbe20b8fmr11706253vsj.10.1698764130179; Tue, 31 Oct 2023 07:55:30 -0700 (PDT) X-Received: by 2002:a67:c29c:0:b0:457:fbe2:b8f with SMTP id k28-20020a67c29c000000b00457fbe20b8fmr11706218vsj.10.1698764129460; Tue, 31 Oct 2023 07:55:29 -0700 (PDT) MIME-Version: 1.0 References: <20231027204933.3651381-1-seanjc@google.com> <20231027204933.3651381-7-seanjc@google.com> In-Reply-To: <20231027204933.3651381-7-seanjc@google.com> From: Paolo Bonzini Date: Tue, 31 Oct 2023 15:55:17 +0100 Message-ID: Subject: Re: [GIT PULL] KVM: x86: SVM changes for 6.7 To: Sean Christopherson Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 31 Oct 2023 07:56:49 -0700 (PDT) On Fri, Oct 27, 2023 at 10:49=E2=80=AFPM Sean Christopherson wrote: > > An enhancement to help userspace deal with SEV-ES guest crashes, and clea= nups > related to not being able to do "skip" emulation for SEV guests. > > The following changes since commit 5804c19b80bf625c6a9925317f845e497434d6= d3: > > Merge tag 'kvm-riscv-fixes-6.6-1' of https://github.com/kvm-riscv/linux= into HEAD (2023-09-23 05:35:55 -0400) > > are available in the Git repository at: > > https://github.com/kvm-x86/linux.git tags/kvm-x86-svm-6.7 > > for you to fetch changes up to 00682995409696866fe43984c74c8688bdf8f0a5: > > KVM: SVM: Treat all "skip" emulation for SEV guests as outright failure= s (2023-10-04 15:08:53 -0700) Pulled, thanks. Paolo > ---------------------------------------------------------------- > KVM SVM changes for 6.7: > > - Report KVM_EXIT_SHUTDOWN instead of EINVAL if KVM intercepts SHUTDOWN = while > running an SEV-ES guest. > > - Clean up handling "failures" when KVM detects it can't emulate the "sk= ip" > action for an instruction that has already been partially emulated. D= rop a > hack in the SVM code that was fudging around the emulator code not giv= ing > SVM enough information to do the right thing. > > ---------------------------------------------------------------- > Peter Gonda (1): > KVM: SVM: Update SEV-ES shutdown intercepts with more metadata > > Sean Christopherson (2): > KVM: x86: Refactor can_emulate_instruction() return to be more expr= essive > KVM: SVM: Treat all "skip" emulation for SEV guests as outright fai= lures > > arch/x86/include/asm/kvm-x86-ops.h | 2 +- > arch/x86/include/asm/kvm_host.h | 4 +-- > arch/x86/kvm/svm/svm.c | 50 ++++++++++++++++----------------= ------ > arch/x86/kvm/vmx/vmx.c | 12 ++++----- > arch/x86/kvm/x86.c | 22 +++++++++++------ > 5 files changed, 45 insertions(+), 45 deletions(-) >