All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Naftaly Avadiaev" <naftaly.avadiaev@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] Simulating Soft Error with MCE Injection method
Date: Wed, 19 Apr 2017 02:10:10 +0300	[thread overview]
Message-ID: <000001d2b898$eed2d520$cc787f60$@gmail.com> (raw)

Hi,

 

QEMU has a build in mechanism for MCE injection. 

However the mechanism is not perfect, QEMU just fills MCA registers with
partial data and then triggers MCE.

I want to add a real corruption before triggering MCE.

The first thing which I tried is to add all MSRs as described in Intel
Software Developer's Manual [now qemu implements 3 of 4 general status
registers and 4 of 5 error reporting registers in a bank], however it seems
that the guest OS is still not aware of the new registers that I have add.

I did the following: 

1. Added the MSRs in CPUX86State. 

2. Added support for reading the new MSRs in helper_rdmsr & helper_wrmsr.

Why the guest OS still unaware of these MSRs?

I also tried to corrupt the EIP before triggering MCE, but the guest OS just
crashed without arriving to MCE handler.

In my understanding the MCE handler is exactly to deal with such errors.
What I'm I missing?

 

Thanks,

Naftaly

                 reply	other threads:[~2017-04-18 23:10 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='000001d2b898$eed2d520$cc787f60$@gmail.com' \
    --to=naftaly.avadiaev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.