qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 4/4] target-xtensa: fix tb invalidation for IBRE


From: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH 4/4] target-xtensa: fix tb invalidation for IBREAK and LOOP
Date: Sat, 07 Apr 2012 13:24:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0

Am 06.04.2012 00:46, schrieb Max Filippov:
> Instruction breakpoint/zero overhead loop handling code is built into
> TBs pointed to by IBREAKA/LEND SRs. When these or related SRs get
> changed TBs at virtual addresses corresponding to their old and their
> new values must be invalidated.
> 
> Virtual address range is passed to the tb_invalidate_phys_page_range,
> which is incorrect in system emulation mode.
> 
> To fix it use guest TLB/MMU to translate virtual address to physical
> address.
> 
> However the guest may not have virtual-to-physical mapping at the moment
> of IBREAKA/LEND change, thus this fix is not 100% accurate.
> 
> Signed-off-by: Max Filippov <address@hidden>
> ---
>  exec-all.h                |    1 +
>  exec.c                    |    9 ++++++---
>  target-xtensa/op_helper.c |   29 ++++++++++++++++++-----------
>  3 files changed, 25 insertions(+), 14 deletions(-)
[snip]

In addition to the breakage reported by Blue, a subject starting with
"target-xtensa: " gives the impression that it only affects Xtensa.
Please split it in two and wait for an Acked-by on the exec part before
including it in an Xtensa PULL.

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg



reply via email to

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