From: Sean Christopherson <seanjc@google.com>
To: Borislav Petkov <bp@alien8.de>
Cc: Mario Limonciello <mario.limonciello@amd.com>,
Yazen Ghannam <yazen.ghannam@amd.com>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Libing He <libhe@redhat.com>, David Arcari <darcari@redhat.com>
Subject: Re: [PATCH] x86/CPU/AMD: Ignore invalid reset reason value
Date: Mon, 18 Aug 2025 08:35:31 -0700 [thread overview]
Message-ID: <aKNIQ9b4fixOVSP4@google.com> (raw)
In-Reply-To: <20250818143126.GHaKM5PsVZPXwr5sPi@fat_crate.local>
On Mon, Aug 18, 2025, Borislav Petkov wrote:
> On Mon, Aug 18, 2025 at 07:24:26AM -0700, Sean Christopherson wrote:
> > Most definitely not if the guest owner and host owner are not one and the same.
> > The example use case is where the platform owner is running one of _their_ kernels
> > in a VM, in which case that kernel probably does want to know why the platform
> > reboot.
>
> Except that can you control who uses that feature? If it ends up being used by
> a VM stack where the guest owner should not know the reboot reason, you've
> lost.
Yeah, but "expose/advertise XYZ to the wrong VM and you've lost" holds true for
so many things. In all honesty, of the many ways a hypervisor/CSP can screw up,
this one doesn't scare me at all.
> > The same thing that guarantees hardware vendors adhere to specs: the desire to
> > get paid.
>
> So you're basically saying all HV vendors return -1 for an unimplemented
> register and we should be fine there?
For this type of register, yes, they should.
> > And QEMU did return an error value, 0xffffffff, a.k.a. PCI Master Abort / PCIe
> > Unsupported Request. I would be amazed if any real world, general purpose VMM
> > did anything else for an MMIO access to an unknown/unsupported range.
>
> Ok, I guess we will know soon enough. :-)
>
> > Huh? Handle a read of all 0xffs as proposed in this patch, and this is unnecessary.
>
> I don't trust that all HVs will DTRT. But ok, I'll take your word for it.
Heh, I don't I trust hypervisors/VMMs either, but if they don't behave, then we
yell at them and/or send patches.
next prev parent reply other threads:[~2025-08-18 15:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-21 18:11 [PATCH] x86/CPU/AMD: Ignore invalid reset reason value Yazen Ghannam
2025-07-21 18:11 ` Yazen Ghannam
2025-07-21 18:13 ` Mario Limonciello
2025-07-22 16:56 ` Borislav Petkov
2025-07-23 18:34 ` Yazen Ghannam
2025-07-23 19:35 ` Borislav Petkov
2025-07-23 19:46 ` Yazen Ghannam
2025-07-24 20:58 ` Sean Christopherson
2025-07-24 21:02 ` Mario Limonciello
2025-07-24 21:32 ` Sean Christopherson
2025-07-25 6:50 ` Borislav Petkov
2025-08-15 21:39 ` Sean Christopherson
2025-08-15 22:04 ` Borislav Petkov
2025-08-15 22:49 ` Sean Christopherson
2025-08-16 8:42 ` Borislav Petkov
2025-08-18 14:24 ` Sean Christopherson
2025-08-18 14:31 ` Borislav Petkov
2025-08-18 15:35 ` Sean Christopherson [this message]
2025-08-18 14:52 ` [tip: x86/urgent] " tip-bot2 for Yazen Ghannam
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=aKNIQ9b4fixOVSP4@google.com \
--to=seanjc@google.com \
--cc=bp@alien8.de \
--cc=darcari@redhat.com \
--cc=libhe@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mario.limonciello@amd.com \
--cc=x86@kernel.org \
--cc=yazen.ghannam@amd.com \
/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;
as well as URLs for NNTP newsgroup(s).