Re: [PATCH] kdump, vmcoreinfo: Export sme_me_mask value to vmcoreinfo

From: lijiang
Date: Sat Oct 27 2018 - 10:42:15 EST


å 2018å10æ27æ 21:17, Boris Petkov åé:
> On October 27, 2018 12:08:58 PM GMT+01:00, Baoquan He <bhe@xxxxxxxxxx> wrote:
>> OK, then it's fine to get the bit number, e.g calling
>> find_first_bit(sme_me_mask, BITS_PER_LONG), and export it to
>> vmcoreinfo. Thanks.
>
> You can simply assign sme_me_mask for now...
>

Thank you, Boris and Baoquan.

Actually, the value of 'sme_me_mask' is 0x800000000000 when SME is enabled, otherwise it is 0.
That is to say, if the bit 47 is set, the bit number is also 0x800000000000 (1 << 47UL);

At present, they are both the same value.

Regards,
Lianbo