All of lore.kernel.org
 help / color / mirror / Atom feed
From: 沈梦姣 <shen.mengjiao3@icloud.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	qemu-discuss <qemu-discuss@nongnu.org>
Subject: Re: Fill tlb for data and io address
Date: Tue, 16 Feb 2021 22:39:08 +0800	[thread overview]
Message-ID: <2D7F6EA4-5525-4F48-ACA7-B157E8A02A2A@icloud.com> (raw)
In-Reply-To: <CAFEAcA-OE+NGfbgjEuydjCfpiR_kuFVsSxYwE-PfvQSX-rzHLQ@mail.gmail.com>



> 在 2021年2月16日,下午7:48,Peter Maydell <peter.maydell@linaro.org> 写道:
> 
> On Tue, 16 Feb 2021 at 11:28, 沈梦姣 <shen.mengjiao3@icloud.com> wrote:
>> Look at the store/load helper, it will use the tlb entry to do the address translation(from guest virtual address to host virtual address) but where the tlb is filled for the data ram and io address, I know where the code ram is filled(tb_find->tb_lookup__cpu_state...)
> 
> The common QEMU code calls the target
Thanks Peter. But what’s the common code? I mean in which case the tlb_fill will be triggered, the generated code will trigger or something else? Thanks in advance.
> CPU tlb_fill function, which tries
> to translate the guest virtual address to a physical address (usually by
> walking the guest page tables). If it succeeds then will update the QEMU
> TLB by calling either tlb_set_page() or tlb_set_page_with_attrs().

> If it
> fails then it arranges to deliver a suitable exception to the guest.
This should be page fault, guest code will update page table, am I right? Thanks 
> 
> thanks
> -- PMM


  reply	other threads:[~2021-02-16 14:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 11:25 Fill tlb for data and io address 沈梦姣
2021-02-16 11:48 ` Peter Maydell
2021-02-16 14:39   ` 沈梦姣 [this message]
2021-02-16 14:41     ` Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2D7F6EA4-5525-4F48-ACA7-B157E8A02A2A@icloud.com \
    --to=shen.mengjiao3@icloud.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-discuss@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.