From: Alexander Graf <agraf@suse.de>
To: Paul Mackerras <paulus@samba.org>
Cc: kvm-ppc@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH] KVM: PPC: Book3s PR: Disable AIL mode with OPAL
Date: Tue, 17 Jun 2014 11:18:26 +0200 [thread overview]
Message-ID: <53A007E2.1020105@suse.de> (raw)
In-Reply-To: <20140612035619.GB14343@drongo>
On 12.06.14 05:56, Paul Mackerras wrote:
> On Tue, Jun 10, 2014 at 07:23:00PM +0200, Alexander Graf wrote:
>> When we're using PR KVM we must not allow the CPU to take interrupts
>> in virtual mode, as the SLB does not contain host kernel mappings
>> when running inside the guest context.
>>
>> To make sure we get good performance for non-KVM tasks but still
>> properly functioning PR KVM, let's just disable AIL whenever a vcpu
>> is scheduled in.
>>
>> This patch fixes running PR KVM on POWER8 bare metal for me.
> We already handle this for the situation where we're running under a
> hypervisor with the calls to pSeries_disable_reloc_on_exc() and
> pSeries_enable_reloc_on_exc() in kvmppc_core_init_vm_pr() and
> kvmppc_core_destroy_vm_pr() respectively.
>
> The obvious approach to fixing this problem would be to generalize
> those calls, perhaps via a ppc_md callback, to work on the powernv
> platform too. If you don't want to do that, for instance because
> those calls are defined to operate across the whole machine rather
> than a single CPU thread, and you prefer to affect just the one thread
> we're running on, then I think you need to explain that in the commit
> message.
It's what I've done at first, yes. Unfortunately the pSeries call is
system global, while we need to do the AIL switching per cpu on bare metal.
Once you start considering CPU hotplug and how that affects the
secondary bringup paths you start wondering whether it's worth the
hassle :). This way you can have a single guest running which only slows
down (disables AIL) on its own vcpu, while all the others still enjoy
the benefits of AIL.
Alex
prev parent reply other threads:[~2014-06-17 9:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-10 17:23 [PATCH] KVM: PPC: Book3s PR: Disable AIL mode with OPAL Alexander Graf
2014-06-12 3:56 ` Paul Mackerras
2014-06-17 9:18 ` Alexander Graf [this message]
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=53A007E2.1020105@suse.de \
--to=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=paulus@samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox