On 2020/11/28 18:18, Marc Zyngier wrote:
On Sat, 28 Nov 2020 07:19:48 +0000,
luojiaxing <luojiaxing@xxxxxxxxxx> wrote:
How can you confirm that the interrupt pending status is the latest?That's a consequence of the vPE having been unmapped:
Is it possible that the interrupt pending status is still cached in
the GICR but not synchronized to the memory.
"A VMAPP with {V,Alloc}=={0,1} cleans and invalidates any caching of
the Virtual Pending Table and Virtual Configuration Table associated
with the vPEID held in the GIC."
Yes, in addition to that, if a vPE is scheduled out of the PE, the
cache clearing and write-back to VPT are also performed, I think.
However, I feel a litter confusing to read this comment at first ,
because it is not only VMAPP that causes cache clearing.
I don't know why VMAPP was mentioned here until I check the other two
patches ("KVM: arm64: GICv4.1: Try to save hw pending state in
save_pending_tables").
So I think may be it's better to add some background description here.