kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wayne Li <waynli329@gmail.com>
To: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org
Cc: David Gibson <david@gibson.dropbear.id.au>,
	qemu-ppc@nongnu.org, QEMU Developers <qemu-devel@nongnu.org>
Subject: Problem with virtual to physical memory translation when KVM is enabled.
Date: Tue, 25 Feb 2020 10:09:17 -0600	[thread overview]
Message-ID: <CAM2K0nreUP-zW2pJaH7tWSHHQn7WWeUDoeH_HM99wysgOHANXw@mail.gmail.com> (raw)

Dear KVM list members,

We developed a virtual machine using the QEMU code.  This virtual
machine emulates a certain custom-made computer that runs on a certain
military platform.  All I can tell you about this virtual machine is
that it emulates a computer that has an e5500 processor.  Currently I
am running this virtual machine on a T4240-RDB which has a PowerPC
e6500 processor.

Anyway, right now I’m trying to get this virtual machine working with
KVM enabled.  But the problem I’m having is the VM doesn’t do anything
after the KVM_RUN ioctl call is made (NIP doesn’t progress and no
registers change).  What seems to be the problem is the VM doesn’t run
the instruction that’s supposed to be retrieved from the virtual
address 0xFFFF_FFFC.   When KVM isn’t enabled and the VM is running
using TCG (tiny code generator), a branch instruction to 0xFFFF_F700
is retrieved from the virtual address 0xFFFF_FFFC and the VM kicks off
running from there.

So what could be causing this problem?  I’m guessing it has something
to do with the translation lookaside buffers (TLBs)?  But the
translation between virtual and physical memory clearly works when KVM
isn’t enabled.  So what could cause this to stop working when KVM is
enabled?  Or maybe I’m not understanding something right and missing
what the problem actually is?  Let me know your thoughts.

-Thanks, Wayne Li

             reply	other threads:[~2020-02-25 16:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-25 16:09 Wayne Li [this message]
2020-02-25 16:16 ` Problem with virtual to physical memory translation when KVM is enabled Peter Maydell
2020-03-03  2:39   ` David Gibson

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=CAM2K0nreUP-zW2pJaH7tWSHHQn7WWeUDoeH_HM99wysgOHANXw@mail.gmail.com \
    --to=waynli329@gmail.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=kvm-ppc@vger.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@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).