Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1513247
| From | Borislav Petkov <bp@alien8.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH 2/3] x86/RAS: Add TSC to the injected MCE |
| Date | 2016-11-01 13:20 +0100 |
| Message-ID | <syGcN-9Z-3@gated-at.bofh.it> (permalink) |
| References | <syG38-8vJ-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Borislav Petkov <bp@suse.de> Add the TSC at the time of injection. Signed-off-by: Borislav Petkov <bp@suse.de> --- arch/x86/ras/mce_amd_inj.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/ras/mce_amd_inj.c b/arch/x86/ras/mce_amd_inj.c index 1ac76479c266..8730c2882fff 100644 --- a/arch/x86/ras/mce_amd_inj.c +++ b/arch/x86/ras/mce_amd_inj.c @@ -275,6 +275,8 @@ static void do_inject(void) unsigned int cpu = i_mce.extcpu; u8 b = i_mce.bank; + rdtscll(i_mce.tsc); + if (i_mce.misc) i_mce.status |= MCI_STATUS_MISCV; -- 2.10.0
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[RFC PATCH 2/3] x86/RAS: Add TSC to the injected MCE Borislav Petkov <bp@alien8.de> - 2016-11-01 13:20 +0100 [tip:ras/core] x86/RAS: Add TSC timestamp to the injected MCE tip-bot for Borislav Petkov <tipbot@zytor.com> - 2016-11-08 17:20 +0100
csiph-web