]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
core: rename per_cpu variable flush_virt_caches to flush_vcpu_caches
authorHenning Schild <henning.schild@siemens.com>
Fri, 10 Oct 2014 13:25:42 +0000 (15:25 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 10 Oct 2014 13:42:00 +0000 (15:42 +0200)
Also changed the comment to hopefully better reflect what the variable
is used for.

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

index 8a8d9ca83b6dabe952a98daaf93360e4df539a2b..1d14b69acf74169124fbe3c7faed65ad1c13ad43 100644 (file)
@@ -101,12 +101,12 @@ 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_virt_caches = true;
+               per_cpu(cpu)->flush_vcpu_caches = true;
 
        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_virt_caches = true;
+                       per_cpu(cpu)->flush_vcpu_caches = true;
 
        vcpu_tlb_flush();
 
@@ -244,8 +244,8 @@ int x86_handle_events(struct per_cpu *cpu_data)
                }
        } while (cpu_data->init_signaled);
 
-       if (cpu_data->flush_virt_caches) {
-               cpu_data->flush_virt_caches = false;
+       if (cpu_data->flush_vcpu_caches) {
+               cpu_data->flush_vcpu_caches = false;
                vcpu_tlb_flush();
        }
 
index dc15ea538febc354218d29bd76745d2473416d14..a397cb83acbebd3c4eef489f470caceb1483a085 100644 (file)
@@ -92,7 +92,7 @@ struct per_cpu {
         * @li per_cpu::wait_for_sipi
         * @li per_cpu::init_signaled
         * @li per_cpu::sipi_vector
-        * @li per_cpu::flush_virt_caches
+        * @li per_cpu::flush_vcpu_caches
         */
        spinlock_t control_lock;
 
@@ -106,8 +106,9 @@ struct per_cpu {
        bool init_signaled;
        /** Pending SIPI vector; -1 if none is pending. */
        int sipi_vector;
-       /** Set to true for pending a flush of guest-related CPU caches. */
-       bool flush_virt_caches;
+       /** Set to true for a pending TLB flush for the paging layer that does
+        *  host physical <-> guest physical memory mappings */
+       bool flush_vcpu_caches;
        /** Set to true for instructing the CPU to disable hypervisor mode. */
        bool shutdown_cpu;
        /** State of the shutdown process. Possible values: