Re: [GIT PULL] xen /proc/mtrr implementation

From: Ingo Molnar
Date: Fri May 15 2009 - 14:28:31 EST



* Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:

> Ingo Molnar wrote:
>> i never got a reply to my question for your previous submission:
>>
>> http://lkml.indiana.edu/hypermail/linux/kernel/0905.1/00152.html
>>
>
> That was in response to the mtrr patch in the dom0/core series.
>
>> Please dont post patches with ugly TODO items in them.
> I removed them in the repost.
>> Also, a more general objection is that /proc/mtrr is a legacy
>> interface, we dont really want to extend its use.
> It's not an extended use; its just making the existing interface work
> under Xen (ie, not breaking the userspace ABI). The only other
> alternatives would be to 1) use Kconfig to prevent MTRR and Xen from
> being set at the same time, or 2) put a runtime hack in to disable MTRR
> when running under Xen. Neither seems like a good idea when we can just
> keep the interface working.

Right now there's no MTRR support under Xen guests and the Xen
hypervisor was able to survive, right? Why should we do it under
dom0?

The MTRR code is extremely fragile, we dont really need an added
layer there. _Especially_ since /proc/mtrr is an obsolete API.

If you want to allow a guest to do MTRR ops, you can do it by
catching the native kernel accesses to the MTRR space. There's no
guest side support needed for that.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/