qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: 최동용 <dychoi@kaist.ac.kr>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Way to turn off translation buffer function in QEMU?
Date: Tue, 23 May 2017 22:58:22 +0900 (KST)	[thread overview]
Message-ID: <592442b13fc9_@_imoxion.com> (raw)

Hello. I'm a student working with QEMU. I'm not sure that I can ask a question to this email address.I'm now trying to turn off the translation buffer function (just for experiment) but having trouble doing it.I tried two different ways to get rid of translation buffer function.(1) I modified the "tb_find_fast" and "tb_find_slow" in cpu_exec.c to always fail to find a correct translation block from buffer and fall to "tb_gen_code".The first approach didn't work. (Even the VM did not turn on.)(2) I found that whenever the translation buffer is full it is flushed in "tb_gen_code" by calling "tb_flush". Therefore I modified the "tb_find_fast" and "tb_find_slow" in cpu_exec.c to always call "tb_flush" before returning from "tb_find" so that translation buffer is kept empty all the time. (to make it impossible to find corresponding translation block from the translation buffer)The second approach also didn't work. (The VM did not turn on too.)Is there any way to turn off the translation buffer function from QEMU? I will really appreciate if anybody could give me an advice.I will also appreciate if anybody could let me know where is best to discuss this kind of questions.Thanks.

                 reply	other threads:[~2017-05-23 13:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=592442b13fc9_@_imoxion.com \
    --to=dychoi@kaist.ac.kr \
    --cc=qemu-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).