]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
x86: control: use arch_flush_cell_vcpu_caches in arch_config_commit
authorHenning Schild <henning.schild@siemens.com>
Fri, 10 Oct 2014 13:25:44 +0000 (15:25 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 10 Oct 2014 13:42:23 +0000 (15:42 +0200)
Use the new function also in arch_config_commit to get that function
more compact.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/x86/control.c

index b4483dc51616be9fa5bdb66acc52ecfaebc0521e..fe42fcfc3710c792144cc37c6ef6d83e012e5735 100644 (file)
@@ -114,17 +114,9 @@ void arch_cell_destroy(struct cell *cell)
 /* all root cell CPUs (except the calling one) have to be suspended */
 void arch_config_commit(struct cell *cell_added_removed)
 {
-       unsigned int cpu, current_cpu = this_cpu_id();
-
-       for_each_cpu_except(cpu, root_cell.cpu_set, current_cpu)
-               per_cpu(cpu)->flush_vcpu_caches = true;
-
+       arch_flush_cell_vcpu_caches(&root_cell);
        if (cell_added_removed && cell_added_removed != &root_cell)
-               for_each_cpu_except(cpu, cell_added_removed->cpu_set,
-                                   current_cpu)
-                       per_cpu(cpu)->flush_vcpu_caches = true;
-
-       vcpu_tlb_flush();
+               arch_flush_cell_vcpu_caches(cell_added_removed);
 
        iommu_config_commit(cell_added_removed);
        pci_config_commit(cell_added_removed);