[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC

From: Jan Kiszka
Subject: [Qemu-devel] qemu-kvm: Role of flush_icache_range on PPC
Date: Wed, 28 Sep 2011 16:23:31 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv: Gecko/20080226 SUSE/ Thunderbird/ Mnenhy/


we have this diff in qemu-kvm:

diff --git a/exec.c b/exec.c
index c1e045d..f188549 100644
--- a/exec.c
+++ b/exec.c
@@ -3950,6 +3955,11 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, 
uint8_t *buf,
                         addr1, (0xff & ~CODE_DIRTY_FLAG));
+               /* qemu doesn't execute guest code directly, but kvm does
+                  therefore flush instruction caches */
+               if (kvm_enabled())
+                   flush_icache_range((unsigned long)ptr,
+                                      ((unsigned long)ptr)+l);
         } else {

flush_icache_range() is doing something only on PPC hosts. So do we need
this upstream?


Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

reply via email to

[Prev in Thread] Current Thread [Next in Thread]