From: Huang Ying <ying.huang@intel.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: Andi Kleen <andi@firstfloor.org>, Avi Kivity <avi@redhat.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Re: [PATCH -v6] QEMU: MCE: Add MCE simulation to qemu/tcg
Date: Wed, 01 Jul 2009 09:14:05 +0800 [thread overview]
Message-ID: <1246410845.12836.93.camel@yhuang-dev.sh.intel.com> (raw)
In-Reply-To: <4A4A5570.1070107@codemonkey.ws>
Hi, Anthony,
On Wed, 2009-07-01 at 02:12 +0800, Anthony Liguori wrote:
> Hi Huang,
>
> Huang Ying wrote:
> > - MCE features are initialized when VCPU is intialized according to CPUID.
> > - A monitor command "mce" is added to inject a MCE.
> > - A new interrupt mask: CPU_INTERRUPT_MCE is added to inject the MCE.
> >
>
> Can you post some instructions on how to test this functionality?
During development, I use QEMU monitor command "mce" to test this
functionality. For corrected error, you can use /sbin/mcelog to get the
error information. For uncorrected error, you will get panic. If you
want to get result faster for corrected error, set the following sysfs
file to a small number, which is seconds between corrected error polls.
/sys/devices/system/machinecheck/machinecheck0/check_interval
For corrected error:
mce 0 1 0x8000000000000000 0x0 0x0 0x0
For uncorrected error:
mce 0 1 0xb200000000000000 0x0 0x0 0x0
> For
> instance, I believe Linux is capable of delivering a SIGBUS to a process
> based on certain MCE's. I'm not sure what the steps would be though to
> create a process using a particular physical memory address, generate a
> MCE for that address, and then inspect that the process received the signal.
>
> Are you testing the patches via something like that?
It is possible to test like that, but it is much easier to test the case
I mentioned above.
Best Regards,
Huang Ying
next prev parent reply other threads:[~2009-07-01 1:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-23 2:05 [Qemu-devel] [PATCH -v6] QEMU: MCE: Add MCE simulation to qemu/tcg Huang Ying
2009-06-30 18:12 ` [Qemu-devel] " Anthony Liguori
2009-07-01 1:14 ` Huang Ying [this message]
2009-07-07 1:58 ` Huang Ying
2009-07-09 1:43 ` Huang Ying
2009-07-10 18:30 ` [Qemu-devel] " Christoph Hellwig
2009-07-10 18:43 ` Anthony Liguori
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=1246410845.12836.93.camel@yhuang-dev.sh.intel.com \
--to=ying.huang@intel.com \
--cc=andi@firstfloor.org \
--cc=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--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).