aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHuang Ying <ying.huang@intel.com>2009-05-21 11:26:44 +0800
committerHuang Ying <ying.huang@intel.com>2009-05-21 11:26:44 +0800
commit9e4ad3dbe7fdcd3af19ac1f243c86b9128514e7b (patch)
tree3b16101e741dab71a8b40e80c920d4cd8f3df483
parent0adb4b151cd063dd3e2b58662438e990ba27c603 (diff)
downloadmce-inject-9e4ad3dbe7fdcd3af19ac1f243c86b9128514e7b.tar.gz
Add RIPV to MCE on broadcasted CPU
To follow the real MCE broadcast. Signed-off-by: Huang Ying <ying.huang@intel.com>
-rw-r--r--inject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inject.c b/inject.c
index 9bd1a9b..2cd9ee9 100644
--- a/inject.c
+++ b/inject.c
@@ -119,6 +119,8 @@ void do_inject_mce(int fd, struct mce *m)
memset(&otherm, 0, sizeof(struct mce));
// make sure to trigger exception on the secondaries
otherm.mcgstatus = m->mcgstatus & MCG_STATUS_MCIP;
+ if (m->status & MCI_STATUS_UC)
+ otherm.mcgstatus |= MCG_STATUS_RIPV;
otherm.status = m->status & MCI_STATUS_UC;
blocked = 1;