mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: linux-kernel@vger.kernel.org, x86@kernel.org,
	kvm@vger.kernel.org, linux-coco@lists.linux.dev
Cc: Sean Christopherson <seanjc@google.com>,
	Paolo Bonzini <pbonzini@redhat.com>,
	Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
	Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Vitaly Kuznetsov <vkuznets@redhat.com>,
	Kiryl Shutsemau <kas@kernel.org>,
	Rick Edgecombe <rick.p.edgecombe@intel.com>
Subject: Re: [PATCH v2 0/5] KVM/x86: Drop "1" as MSR emulation return value
Date: Thu, 28 May 2026 13:35:23 +0200	[thread overview]
Message-ID: <5fa008de-5e7b-4d2e-9426-14849ec50b9e@suse.com> (raw)
In-Reply-To: <20260528111357.264809-1-jgross@suse.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 1468 bytes --]

On 28.05.26 13:13, Juergen Gross wrote:
> Get rid of the literal "1" used as general error return value in KVM
> MSR emulation. It can easily be replaced by negative errno values
> instead.
> 
> This is meant to avoid confusion with the literal "1" used as return
> value for "return to guest".
> 
> Changes in V2:
> - series carved out from initial "KVM: Avoid literal numbers as return
>    values" series
> - don't use new KVM_MSR_RET_* defines, but 0 and -errno
> 
> Juergen Gross (5):
>    KVM/x86: Change comment before KVM_MSR_RET_* defines
>    KVM/x86: Return -errno instead of "1" for APIC related MSR emulation
>    KVM/x86: Return -errno instead of "1" for Hyper-V related MSR
>      emulation
>    KVM/x86: Return -errno instead of "1" for VMX related MSR emulation
>    KVM/x86: Return -errno instead of "1" for SVM related MSR emulation
> 
>   arch/x86/kvm/hyperv.c        | 72 +++++++++++++--------------
>   arch/x86/kvm/lapic.c         | 39 +++++++--------
>   arch/x86/kvm/svm/pmu.c       |  4 +-
>   arch/x86/kvm/svm/svm.c       | 36 +++++++-------
>   arch/x86/kvm/vmx/nested.c    |  2 +-
>   arch/x86/kvm/vmx/pmu_intel.c | 16 +++---
>   arch/x86/kvm/vmx/tdx.c       | 10 ++--
>   arch/x86/kvm/vmx/vmx.c       | 96 ++++++++++++++++++------------------
>   arch/x86/kvm/x86.h           |  4 +-
>   9 files changed, 139 insertions(+), 140 deletions(-)
> 

Oh, sorry, there is another patch. Resending.


Juergen

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3743 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

      parent reply	other threads:[~2026-05-28 11:35 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-28 11:13 Juergen Gross
2026-05-28 11:13 ` [PATCH v2 1/5] KVM/x86: Change comment before KVM_MSR_RET_* defines Juergen Gross
2026-05-28 11:13 ` [PATCH v2 2/5] KVM/x86: Return -errno instead of "1" for APIC related MSR emulation Juergen Gross
2026-05-28 11:13 ` [PATCH v2 3/5] KVM/x86: Return -errno instead of "1" for Hyper-V " Juergen Gross
2026-05-28 11:13 ` [PATCH v2 4/5] KVM/x86: Return -errno instead of "1" for VMX " Juergen Gross
2026-05-28 11:13 ` [PATCH v2 5/5] KVM/x86: Return -errno instead of "1" for SVM " Juergen Gross
2026-05-28 11:35 ` Juergen Gross [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fa008de-5e7b-4d2e-9426-14849ec50b9e@suse.com \
    --to=jgross@suse.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=kas@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=rick.p.edgecombe@intel.com \
    --cc=seanjc@google.com \
    --cc=tglx@kernel.org \
    --cc=vkuznets@redhat.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®