From: Vitaly Kuznetsov <vkuznets@redhat.com>
To: Tony Luck <tony.luck@gmail.com>, Borislav Petkov <bp@alien8.de>
Cc: "Reinette Chatre" <reinette.chatre@intel.com>,
"Babu Moger" <Babu.Moger@amd.com>, X86-ML <x86@kernel.org>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
"Fenghua Yu" <fenghua.yu@intel.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Ingo Molnar" <mingo@redhat.com>,
"H. Peter Anvin" <hpa@zytor.com>,
"Jan H. Schönherr" <jschoenh@amazon.de>,
"David Duncan" <davdunc@amazon.com>
Subject: Re: [PATCH] x86/intel_rdt: use rdmsr_safe() to workaround AWS host issue
Date: Thu, 10 Jan 2019 11:32:47 +0100 [thread overview]
Message-ID: <87woncol9s.fsf@vitty.brq.redhat.com> (raw)
In-Reply-To: <CA+8MBbLh2JyWg=AF-cftrCfDB8QgRwJ2sKV-S24Jqtu_y1qZrg@mail.gmail.com>
Tony Luck <tony.luck@gmail.com> writes:
> On Wed, Jan 9, 2019 at 5:00 AM Borislav Petkov <bp@alien8.de> wrote:
>>
>> On Wed, Jan 09, 2019 at 01:09:31PM +0100, Vitaly Kuznetsov wrote:
>> > Hm, why is that? In theory, hypervisors can pass through or emulate the
>> > required MSRs...
>>
>> ...and when the theory becomes reality we'll remove the check.
>
> In practice that may be a long time coming. We don't have many CLOSIDs, or
> bits in a cache mask, at the h/w level. If you start trying to
> subdivide those resources to pass a subset to a guest, then you'll
> quickly find that you have no flexibility in the guest to do anything
> useful. It would only work if you limited to two, or perhaps three
> guests.
Running a single guest on a physical CPU is a very common scenario. In
fact, sharing cores is very rare for public clouds: e.g. all worthy
instance types on AWS/Azure give you dedicated cores and I don't see why
hypervisor can't pass through resctl features.
The other thing is: how can we be sure that there's no hypervisor
exposing these feature already? Even if open-source hypervisors like
KVM/Xen don't do it it doesn't prove anything: there are numerous
proprietary hypervisors and who knows what they do.
The original issue which triggered the discussion was discovered on AWS
Xen where the host is buggy and I suggested a simple short-term
workaround, I'm no expert in rdt/qos so I'm leaving this up to the
maintainers to decide which fix deserves to go in (if any).
--
Vitaly
next prev parent reply other threads:[~2019-01-10 10:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-20 13:40 [PATCH] x86/intel_rdt: use rdmsr_safe() to workaround AWS host issue Vitaly Kuznetsov
2018-12-20 16:17 ` Borislav Petkov
2018-12-20 17:31 ` Vitaly Kuznetsov
[not found] ` <51dcb13a-4751-47f5-1e01-f6731a2c6f3c@intel.com>
[not found] ` <20521afe-09af-7acf-6f32-3f6e9a971091@intel.com>
2019-01-09 11:39 ` Borislav Petkov
2019-01-09 12:09 ` Vitaly Kuznetsov
2019-01-09 12:14 ` Borislav Petkov
2019-01-09 18:41 ` Tony Luck
2019-01-10 10:32 ` Vitaly Kuznetsov [this message]
2019-01-10 10:53 ` Borislav Petkov
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=87woncol9s.fsf@vitty.brq.redhat.com \
--to=vkuznets@redhat.com \
--cc=Babu.Moger@amd.com \
--cc=bp@alien8.de \
--cc=davdunc@amazon.com \
--cc=fenghua.yu@intel.com \
--cc=hpa@zytor.com \
--cc=jschoenh@amazon.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=reinette.chatre@intel.com \
--cc=tglx@linutronix.de \
--cc=tony.luck@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.