[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] arch/x86/setup.c: Ignore early boot parameters like no-real-mode


  • To: Trammell Hudson <hudson@xxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 12 Aug 2020 19:16:13 +0100
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Delivery-date: Wed, 12 Aug 2020 18:16:29 +0000
  • Ironport-sdr: /X1bc905lcoQ4ecXWdkWwvbEf7IEejbDSMlfqEvjlBOMy9UY7CPQQPk7SjyeiPevMLz2S2wH6A cSEU0z8zkORQiA+BRmVnjSf7nzjcV33mor0idJBRtyXUUoK8QcI0BR5uF3rD6SlM/FESCPp+J5 4E7f2y4xM3XHApCDQI2k6r+xMwr20vl2w6oOb+a/thwbj9z8utSwJp/JS8v+k/HntwPZKTxfDw sfQaN5U46SzXIgfGVti5sB96pKLJ7dnq/thUEfA+eAnuYDZ3UY9tn1hMb2a7rXwNldWr23CaDT 1rA=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 12/08/2020 18:42, Trammell Hudson wrote:
> There are parameters in xen/arch/x86/boot/cmdline.c that
> are only used early in the boot process, so handlers are
> necessary to avoid an "Unknown command line option" in
> dmesg.
>
> This also updates ignore_param() to generate a temporary
> variable name so that the macro can be used more than once
> per file.
>
> Signed-off-by: Trammell hudson <hudson@xxxxxxxx>

Good spot.

However, the use of __LINE__ creates problems for livepatch builds, as
it causes the binary diffing tools to believe these changed, based on a
change earlier in the file.

Instead of opencoding TEMP_NAME(), can we borrow Linux's __UNIQUE_ID()
infrastructure?  __COUNTER__ appears to have existed for ages, and
exists in all of our supported compilers.

If you want, I can sort that out as a prereq patch, and rebase this one
on top?

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.