From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:54898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXO01-0007Zg-1F for qemu-devel@nongnu.org; Wed, 23 May 2012 22:42:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXNzz-0003h6-4O for qemu-devel@nongnu.org; Wed, 23 May 2012 22:42:00 -0400 Message-ID: <4FBD9FF1.9020908@web.de> Date: Wed, 23 May 2012 23:41:53 -0300 From: Jan Kiszka MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig265CB004D752EFDBA3FE4688" Subject: [Qemu-devel] [PATCH] Clarify comments of tb_invalidate_phys_[page_]range List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial , qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig265CB004D752EFDBA3FE4688 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable From: Jan Kiszka They could suggest that all TBs of the page containing the range would be invalidated. Signed-off-by: Jan Kiszka --- exec.c | 22 ++++++++++++---------- 1 files changed, 12 insertions(+), 10 deletions(-) diff --git a/exec.c b/exec.c index efa1345..a1c12ec 100644 --- a/exec.c +++ b/exec.c @@ -1076,11 +1076,11 @@ TranslationBlock *tb_gen_code(CPUArchState *env, } =20 /* - * invalidate all TBs which intersect with the target physical pages - * starting in range [start;end[. NOTE: start and end may refer to - * different physical pages. 'is_cpu_write_access' should be true if cal= led - * from a real cpu write access: the virtual CPU will exit the current - * TB if code is modified inside this TB. + * Invalidate all TBs which intersect with the target physical address r= ange + * [start;end[. NOTE: start and end may refer to *different* physical pa= ges. + * 'is_cpu_write_access' should be true if called from a real cpu write + * access: the virtual CPU will exit the current TB if code is modified = inside + * this TB. */ void tb_invalidate_phys_range(tb_page_addr_t start, tb_page_addr_t end, int is_cpu_write_access) @@ -1092,11 +1092,13 @@ void tb_invalidate_phys_range(tb_page_addr_t star= t, tb_page_addr_t end, } } =20 -/* invalidate all TBs which intersect with the target physical page - starting in range [start;end[. NOTE: start and end must refer to - the same physical page. 'is_cpu_write_access' should be true if calle= d - from a real cpu write access: the virtual CPU will exit the current - TB if code is modified inside this TB. */ +/* + * Invalidate all TBs which intersect with the target physical address r= ange + * [start;end[. NOTE: start and end must refer to the *same* physical pa= ge. + * 'is_cpu_write_access' should be true if called from a real cpu write + * 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, int is_cpu_write_access) { --------------enig265CB004D752EFDBA3FE4688 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+9n/EACgkQitSsb3rl5xRB3QCeLrPfSUAf+n1c+syJuVZuJSXq aeEAn19O5qGtD6Af8hyzed6V7E2Wq0IS =f7Eh -----END PGP SIGNATURE----- --------------enig265CB004D752EFDBA3FE4688--