[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH]Enable kvmvapic only when host doesn't support V
Re: [Qemu-devel] [PATCH]Enable kvmvapic only when host doesn't support VAPIC capability in KVM mode
Tue, 11 Apr 2017 00:54:41 +0000
> I think we shouldn't read it like that. It seems that KVM is always
> returning the VAPIC capability except when the CPU is providing a
> special acceleration .
> I would say you can't really refer yourself at this bit to enable or
> not kvmapic in QEMU.
> Does that make sense?
>From this patch and commit message,
"Disable vapic support on Intel machines with FlexPriority"
If the CPU has accelerated tpr, vapic should be disabled.
The function pointer has the name cpu_has_accelerated_tpr.
kvmvapic was created for cpu which doesn't have accelerated tpr,
from the commit message, I can infer VAPIC means kvmvapic.
My understanding is they are referring to the same thing, though
the return value of KVM_CAP_VAPIC is confusing.
Didn't find explanation about the return value of KVM_CAP_VAPIC,
We can interpret it as following from QEMU perspective,
If KVM_CAP_VAPIC return 1, QEMU should enable VAPIC(kvmvapic).
If KVM_CAP_VAPIC return 0, QEMU should disable VAPIC(kvmvapic).