mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC] Question about async TLB flush and KVM pv tlb improvements
@ 2020-02-25  4:12 何容光(邦采)
  2020-02-25  6:31 ` Wanpeng Li
       [not found] ` <C6DFCB69-25A6-43FE-92E9-C9E675CAB615@vmware.com>
  0 siblings, 2 replies; 6+ messages in thread
From: 何容光(邦采) @ 2020-02-25  4:12 UTC (permalink / raw)
  To: namit, peterz, kernellwp, pbonzini
  Cc: dave.hansen, mingo, tglx, x86, linux-kernel, dave.hansen, bp,
	luto, kvm, yongting.lyt,
	吴启翾(启翾)

Hi there,

I saw this async TLB flush patch at https://lore.kernel.org/patchwork/patch/1082481/ , and I am wondering after one year, do you think if this patch is practical or there are functional flaws?
From my POV, Nadav's patch seems has no obvious flaw. But I am not familiar about the relationship between CPU's speculation exec and stale TLB, since it's usually transparent from programing. In which condition would machine check occurs? Is there some reference I can learn?
BTW, I am trying to improve kvm pv tlb flush that if a vCPU is preempted, as initiating CPU is not sending IPI to and waiting for the preempted vCPU, when the preempted vCPU is resuming, I want the VMM to inject an interrupt, perhaps NMI, to the vCPU and letting vCPU flush TLB instead of flush TLB for the vCPU, in case the vCPU is not in kernel mode or disabled interrupt, otherwise stick to VMM flush. Since VMM flush using INVVPID would flush all TLB of all PCID thus has some negative performance impacting on the preempted vCPU. So is there same problem as the async TLB flush patch?
Thanks in advance.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-25  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-25  4:12 [RFC] Question about async TLB flush and KVM pv tlb improvements 何容光(邦采)
2020-02-25  6:31 ` Wanpeng Li
2020-02-25  7:53   ` 回复:[RFC] " 何容光(邦采)
2020-02-25  8:41     ` [RFC] " Wanpeng Li
2020-02-25  9:26       ` He Rongguang
     [not found] ` <C6DFCB69-25A6-43FE-92E9-C9E675CAB615@vmware.com>
2020-02-25  7:25   ` 回复:[RFC] " 何容光(邦采)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®