From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A0A9352021 for ; Thu, 28 May 2026 13:21:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779974468; cv=none; b=e1vLrRERHsRY/Ec/6kM4gZGLH9Qxr4lGuYsXvg1wRUfmlK9jUdZiIBmVbf/s6MR3/MgdVwPPSaLiau82GAalXrPUfZyP4Kp5pbvw0ZHd/V8Diw3jKiERZrre4H7PC4oO8kKJ68y6+WuopfGwaqfsRqGuOSfwPKNFRqqvnQr0UMc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779974468; c=relaxed/simple; bh=KycBQ9WQVwk13VRyQWEJeBpD8BVbZhadC15kR85B8sU=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=QbRcwGQXsE4ssi5Ps20NV3/7DhjkfilJMoz53SxUohvZvK3O47KWBzhQgFcVUCx5PfV0y5hyshphJEU6KRzN0cWOVSMzw63nWwvmA8947ectYJk6j0vkWJH5xe8eLadCcs27oTeACisut6VAGZ5mVsQieLzqq3rp7KdkZT8tofc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=gurxxBX6; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="gurxxBX6" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-367fd7b8825so12836671a91.0 for ; Thu, 28 May 2026 06:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779974466; x=1780579266; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=KycBQ9WQVwk13VRyQWEJeBpD8BVbZhadC15kR85B8sU=; b=gurxxBX6+6K6f5C+6c2Gkfv9KZkd2bWA6yZSZv7mTfvMoy8VkioCT0BM/NDXO6A6f/ gWVi747qxB4Fl2Ny/UCOnZL9scQB6l0Jc1aGLrRJMrrqwUST4nN4fLE8PuYsrbTWONhw Yx+HhL6AtMAco44mnjmY6R5nC372bKZ+6aWxbDlImkjmbjQ5vQW6I5PWsTPX11FTT+Dk Dhfd5KLS9rcKx3lytrZglfKGEhpf9fIdzpMDm65QYQ7IQUfay3k6uzBHBeSXphl/hZcw 5XSzWKJ+6mgBA2a3sTJW1PSPWJvuAK1YVUT2T2b4IMqthfM7bsSVZTJT/mi3cEgeQqVQ iW9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779974466; x=1780579266; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=KycBQ9WQVwk13VRyQWEJeBpD8BVbZhadC15kR85B8sU=; b=cGDriptIruK3Rl8AkG7F7Yg4Rgksn8xM56cZ44P+aD4yoRvQPWKDBB1GVSDbu2oYmK m9qfeEU+bo4B3t9VTkGEIsXK2cGMvz4phH/2Mi6MdUPe2nmBAfOEyH6GLLVWaeSNuF9L FL3ioej4gqHLz3SggBDIc1JC+KsKOUdKcSvz+IsinDTkYLhx5ccOQb1c2HlPsD20r1pD nnkDWbqnC33+p6FbbeBa2q42J8tQwT3khUzaD+rSNwYbawXHnPKb9oq6K42x/o9Pp2lp XT11VDIMHoLqM7CT08jz96/Rqrwmc/XFw/FDNFtUfBU4ayWqEDSZRUzBfuKGbce7RLFH ilUg== X-Gm-Message-State: AOJu0Yw0iZROgbxO7982wYfZHZJ975mJn1GLsmtt1rv0n6RjEYyYQ3LT WBM+xLn2aHg7CwxUgERSyDxnPeCRA/8MGyMevG772Z/Al2sl9FMzWtvZrty0nhNm+eAtDT4opY0 GrCdtaQ== X-Received: from pgiy11.prod.google.com ([2002:a63:de4b:0:b0:c74:497:507e]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:56ce:b0:36a:cace:a4b6 with SMTP id 98e67ed59e1d1-36acacea4d5mr18554876a91.9.1779974465476; Thu, 28 May 2026 06:21:05 -0700 (PDT) Date: Thu, 28 May 2026 06:21:04 -0700 In-Reply-To: <476964db-837a-45d8-a647-c5a2ea8b0cb6@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260528113605.267111-1-jgross@suse.com> <476964db-837a-45d8-a647-c5a2ea8b0cb6@suse.com> Message-ID: Subject: Re: [PATCH v2 0/6] KVM/x86: Drop "1" as MSR emulation return value From: Sean Christopherson To: "=?utf-8?B?SsO8cmdlbiBHcm/Dnw==?=" Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Vitaly Kuznetsov , Kiryl Shutsemau , Rick Edgecombe , David Woodhouse , Paul Durrant Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, May 28, 2026, J=C3=BCrgen Gro=C3=9F wrote: > On 28.05.26 15:09, Sean Christopherson wrote: > > On Thu, May 28, 2026, Juergen Gross wrote: > > > Please disregard this series, there is one complication sashiko made = me > > > aware of. > >=20 > > Sashiko beat me to the punch. :-) > >=20 > > See commit 2368048bf5c2 ("KVM: x86: Signal #GP, not -EPERM, on bad WRMS= R(MCi_CTL/STATUS)") > > for a real world example of how things can and will go wrong. >=20 > Yeah, with Sashiko's pointer it was easy to spot. >=20 > Question now is whether the already existing cases of -errno passed as re= turn > value are wrong or on purpose.=20 What are the existing cases? > If the latter, there should be a comment for > that, otherwise they need to be fixed.. >=20 > Disentangling the MSR emulation return values from the "normal" ones ("re= turn > to guest"/"return to user mode") will be quite interesting with the overl= oaded > semantics of "1". LOL, "interesting".