[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppcr: Avoid decrementer related kvm
From: |
Alexander Graf |
Subject: |
Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppcr: Avoid decrementer related kvm exits |
Date: |
Fri, 28 Oct 2011 09:27:47 +0200 |
On 25.10.2011, at 21:38, Scott Wood wrote:
> On 10/14/2011 01:44 AM, Alexander Graf wrote:
>> Wouldn't a simple
>>
>> if (kvm_enabled()) {
>> return;
>> }
>>
>> in the beginning of the function make more sense? There's no code connecting
>> the in-qemu and the in-kvm decrementors atm, so any logic applying to the
>> in-qemu one is moot for kvm.
>
> On book3e at least, we can use sregs to set the decrementer, and we
> probably want this to happen on reset.
Sure.
if (kvm_enabled()) {
kvmppc_set_dec(x);
return;
}
Alex