From: Alexander Graf <agraf@suse.de>
To: Alexander Graf <agraf@suse.de>
Cc: kvm-ppc <kvm-ppc@vger.kernel.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linuxppc-dev@ozlabs.org" <linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH] PPC: Sync guest visible MMU state
Date: Thu, 26 Nov 2009 22:56:11 +0100 [thread overview]
Message-ID: <37C1770E-4657-413A-9A40-A0C04FE2D055@suse.de> (raw)
In-Reply-To: <1259249056-3953-1-git-send-email-agraf@suse.de>
Am 26.11.2009 um 16:24 schrieb Alexander Graf <agraf@suse.de>:
> Currently userspace has no chance to find out which virtual address
> space we're
> in and resolve addresses. While that is a big problem for migration,
> it's also
> unpleasent when debugging, as gdb and the monitor don't work on
> virtual
> addresses.
>
> This patch exports enough of the MMU segment state to userspace to
> make
> debugging work and thus also includes the groundwork for migration.
>
> Signed-off-by: Alexander Graf <agraf@suse.de>
>
> ---
>
> Ben, please take this patch in your tree.
>
> v2 -> v3:
>
> - don't use anonymous unions/structs
> ---
> arch/powerpc/include/asm/kvm.h | 20 +++++++++++-
> arch/powerpc/include/asm/kvm_asm.h | 1 +
> arch/powerpc/include/asm/kvm_book3s.h | 3 ++
> arch/powerpc/kvm/book3s.c | 53 ++++++++++++++++++++++++
> +++++++-
> arch/powerpc/kvm/book3s_64_emulate.c | 38 ++++++++++++++---------
> arch/powerpc/kvm/book3s_64_mmu.c | 2 +
> arch/powerpc/kvm/powerpc.c | 3 ++
> include/linux/kvm.h | 3 ++
> 8 files changed, 104 insertions(+), 19 deletions(-)
>
> diff --git a/arch/powerpc/include/asm/kvm.h b/arch/powerpc/include/
> asm/kvm.h
> index c9ca97f..cb6ad08 100644
> --- a/arch/powerpc/include/asm/kvm.h
> +++ b/arch/powerpc/include/asm/kvm.h
> @@ -46,8 +46,24 @@ struct kvm_regs {
> };
>
> struct kvm_sregs {
> - __u32 pvr;
> - char pad[1020];
> + union {
> + struct {
> + __u32 pvr;
Meh this breaks old userspace. Better patch following tomorrow.
next prev parent reply other threads:[~2009-11-26 21:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-26 15:24 [PATCH] PPC: Sync guest visible MMU state Alexander Graf
2009-11-26 21:56 ` Alexander Graf [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-11-30 13:02 Alexander Graf
2009-11-30 13:15 ` Avi Kivity
2009-11-26 11:16 Alexander Graf
2009-11-26 12:40 ` Avi Kivity
2009-11-26 12:46 ` Alexander Graf
2009-11-26 12:50 ` Avi Kivity
2009-11-26 13:16 ` Alexander Graf
2009-11-26 13:20 ` Avi Kivity
2009-11-24 7:50 Alexander Graf
2009-11-24 15:02 ` Avi Kivity
2009-11-24 15:04 ` Alexander Graf
2009-11-24 16:05 ` Avi Kivity
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=37C1770E-4657-413A-9A40-A0C04FE2D055@suse.de \
--to=agraf@suse.de \
--cc=kvm-ppc@vger.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.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).