Re: [PATCH v2] x86/hyperv: add noop functions to x86_init mpparse functions

From: Dave Hansen
Date: Tue Jun 13 2023 - 13:33:33 EST


On 6/13/23 00:13, Saurabh Sengar wrote:
> In certain configurations, VTL0 and VTL2 can share the same VM
> partition and hence share the same memory address space. In such
> systems VTL2 has visibility of all of the VTL0 memory space.

FWIW, this is pretty much gibberish to me. The way I suggest avoiding
producing gibberish is avoiding acronyms:

Hyper-V can run VMs at different privilege "levels". Sometimes,
it chooses to run two different VMs at different levels but
they share some of their address space. This <insert reason
that someone might want to do this>.

That's not gibberish.

> When CONFIG_X86_MPPARSE is enabled for VTL2, the kernel performs
> a scan of low memory to search for MP tables. However, in systems
> where VTL0 controls the low memory and may contain valid tables
> specific to VTL0, this scanning process can lead to confusion
> within the VTL2 kernel.

What is the end-user-visible effect of this "confusion"? A crash? A
warning? An error message? What is the impact on end users?

This information will help the maintainers decide how to disposition
your patch. Should we send it upstream immediately because it's
impacting millions of users? Or can we do it in a bit more leisurely
fashion because nobody cares?

> In !ACPI system, there is no way to disable CONFIG_X86_MPPARSE
> hence add the noop function instead.

This makes zero sense to me.

Like I told you before, we don't compile things out just because they
don't work on one weirdo system. If we did that, we'd have a billion
incompatible x86 kernel images that can't boot across systems.