Thread (8 messages) 8 messages, 4 authors, 2020-06-01

Re: [PATCH RFC] KVM: arm64: Sidestep stage2_unmap_vm() on vcpu reset when S2FWB is supported

From: zhukeqian <hidden>
Date: 2020-06-01 05:08:06

Hi Marc,

On 2020/5/31 0:31, Marc Zyngier wrote:
Hi Alex,

On 2020-05-30 11:46, Alexandru Elisei wrote:
quoted
Hi,
[...]
      */
-    if (vcpu->arch.has_run_once && !cpus_have_const_cap(ARM64_HAS_STAGE2_FWB))
-        stage2_unmap_vm(vcpu->kvm);
+    if (vcpu->arch.has_run_once) {
+        if (!cpus_have_final_cap(ARM64_HAS_STAGE2_FWB))
+            stage2_unmap_vm(vcpu->kvm);
+        else
+            __flush_icache_all();
I have a question here.
Does this operation flush icaches of all physical CPUs?
+    }

     vcpu_reset_hcr(vcpu);
Thanks,
Keqian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help