Clarify comments of tb_invalidate_phys_[page_]range

They could suggest that all TBs of the page containing the range would
be invalidated.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
This commit is contained in:
Jan Kiszka 2012-05-23 23:41:53 -03:00 committed by Stefan Hajnoczi
parent 083dbf489d
commit 8e0fdce32d
1 changed files with 12 additions and 10 deletions

22
exec.c
View File

@ -1076,11 +1076,11 @@ TranslationBlock *tb_gen_code(CPUArchState *env,
} }
/* /*
* invalidate all TBs which intersect with the target physical pages * Invalidate all TBs which intersect with the target physical address range
* starting in range [start;end[. NOTE: start and end may refer to * [start;end[. NOTE: start and end may refer to *different* physical pages.
* different physical pages. 'is_cpu_write_access' should be true if called * 'is_cpu_write_access' should be true if called from a real cpu write
* from a real cpu write access: the virtual CPU will exit the current * access: the virtual CPU will exit the current TB if code is modified inside
* TB if code is modified inside this TB. * this TB.
*/ */
void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t end, void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t end,
int is_cpu_write_access) int is_cpu_write_access)
@ -1092,11 +1092,13 @@ void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t end,
} }
} }
/* invalidate all TBs which intersect with the target physical page /*
starting in range [start;end[. NOTE: start and end must refer to * Invalidate all TBs which intersect with the target physical address range
the same physical page. 'is_cpu_write_access' should be true if called * [start;end[. NOTE: start and end must refer to the *same* physical page.
from a real cpu write access: the virtual CPU will exit the current * 'is_cpu_write_access' should be true if called from a real cpu write
TB if code is modified inside this TB. */ * access: the virtual CPU will exit the current TB if code is modified inside
* this TB.
*/
void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end, void tb_invalidate_phys_page_range(tb_page_addr_t start, tb_page_addr_t end,
int is_cpu_write_access) int is_cpu_write_access)
{ {