lkml.org 
[lkml]   [2018]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo
    On Fri, 26 Oct 2018 20:32:11 +0800
    lijiang <lijiang@redhat.com> wrote:

    >[...]
    > For AMD machine with the SME feature, the msr 'MSR_K8_SYSCFG' can examine
    > whether SME is enabled in kernel, but the kexec is also userspace tool,
    > it has no permission to access the msr.

    But we need the MSR value from the panic kernel environment, not while
    the production kernel is still running, right?

    If so, then this reminds me that I have wanted for a long time to store
    more of the hardware state in a vmcore NOTE after a kernel crash ...
    control registers, MSRs and whatnot. Of course, this would be a
    long-term project, but I wonder what other people think about it in
    general.

    Just my 2 cents,
    Petr T

    > Furthermore, i also tried to read the "/dev/cpu/cpu[number]/msr", but
    > the value depends on BIOS's configuration. That is to say, if SME is
    > set in BIOS, the value of msr is always 0xF40000 whatever the kernel
    > commandline parameter is "mem_encrypt=on" or "mem_encrypt=off".
    >
    > If i made a mistake, please help to point it out.
    >
    > Thanks.
    > Lianbo
    >
    > _______________________________________________
    > kexec mailing list
    > kexec@lists.infradead.org
    > http://lists.infradead.org/mailman/listinfo/kexec

    \
     
     \ /
      Last update: 2018-10-26 18:25    [W:4.125 / U:0.868 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site