From: "andrzej zaborowski" <balrogg@gmail.com>
To: Qemu mailing list <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [kqemu] gpf in memory access
Date: Sun, 3 Feb 2008 17:46:49 +0100 [thread overview]
Message-ID: <fb249edb0802030846o437a1ac8u50663d8b9713d3ab@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 530 bytes --]
I was playing with gpm (mouse daemon) in Linux guest and apparently my
gpm binary is broken and with the "ps2" plugin it segfaults because of
a general protection fault when trying to load a quadword from the
address 0xff00000000000000. Under qemu as well as on the my physical
amd64 it just segfaults, but under kqemu if makes kqemu panic and qemu
aborts. Attached is a patch to make kqemu pass the gpf to qemu. It's
probably wrong but it gives identical behaviour as with -no-kqemu or
as on physical cpu, in this case.
Regards
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: kqemu-mem-gpf.patch --]
[-- Type: text/x-patch; name=kqemu-mem-gpf.patch, Size: 667 bytes --]
diff --git a/common/kqemu_int.h b/common/kqemu_int.h
index d881d85..cdb3a73 100644
--- a/common/kqemu_int.h
+++ b/common/kqemu_int.h
@@ -1065,11 +1065,17 @@ static inline void stq_fast(struct kqemu_state *s, unsigned long addr,
#define MMU_EXCEPTION(label) \
".section \"mmu_ex_table\", \"a\"\n"\
".quad " #label "\n"\
+ ".previous\n"\
+ ".section \"seg_ex_table\", \"a\"\n"\
+ ".quad " #label "\n"\
".previous\n"
#else
#define MMU_EXCEPTION(label) \
".section \"mmu_ex_table\", \"a\"\n"\
".long " #label "\n"\
+ ".previous\n"\
+ ".section \"seg_ex_table\", \"a\"\n"\
+ ".long " #label "\n"\
".previous\n"
#endif
next reply other threads:[~2008-02-03 16:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-03 16:46 andrzej zaborowski [this message]
2008-02-03 23:53 ` [Qemu-devel] Re: [kqemu] gpf in memory access andrzej zaborowski
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=fb249edb0802030846o437a1ac8u50663d8b9713d3ab@mail.gmail.com \
--to=balrogg@gmail.com \
--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).