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

Re: [PATCH] x86/pv: Fix Clang build with !CONFIG_PV32


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Tue, 5 May 2020 16:05:58 +0100
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@xxxxxxxxxx; spf=Pass smtp.mailfrom=Andrew.Cooper3@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Tue, 05 May 2020 15:06:10 +0000
  • Ironport-sdr: nrXnuxROmWD5NfrrBYUDWyyZHGdEV5CPjtYeo3y1c9XoL+9UyqVKMecel/711Tmvdj/H6EvQcE 6KA1p7enQhs1nBxEYmQBrwbupOhal+VkXsJIsgyoc0noY2zYC2bxPBf/yFd+46wAhDWsslCm9R SD3XMDdN5SaUZPzKswYgZ803gZ8OO7QQLB8ewB5uitMpB+4Sh6HntYZV9dHnVmtYR8F+8xDNrH 8x/cHAqU1S5o1b1fPMaSsKC7s2kCn+rmm1FKUmYESjNSLICgV+Am3WYKm4VdVP9eQqUG8JJMR2 q3A=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05/05/2020 15:52, Jan Beulich wrote:
> [CAUTION - EXTERNAL EMAIL] DO NOT reply, click links, or open attachments 
> unless you have verified the sender and know the content is safe.
>
> On 05.05.2020 16:28, Andrew Cooper wrote:
>> @@ -753,8 +751,9 @@ void load_system_tables(void)
>>      _set_tssldt_desc(gdt + TSS_ENTRY, (unsigned long)tss,
>>                       sizeof(*tss) - 1, SYS_DESC_tss_avail);
>>      if ( IS_ENABLED(CONFIG_PV32) )
>> -            _set_tssldt_desc(compat_gdt + TSS_ENTRY, (unsigned long)tss,
>> -                             sizeof(*tss) - 1, SYS_DESC_tss_busy);
>> +            _set_tssldt_desc(
>> +                    this_cpu(compat_gdt) - FIRST_RESERVED_GDT_ENTRY + 
>> TSS_ENTRY,
>> +                    (unsigned long)tss, sizeof(*tss) - 1, 
>> SYS_DESC_tss_busy);
> Isn't indentation here off by 4 compared to what we
> normally do with extremely large argument expressions?

No.  This is Linux style (therefore 8-space tabs), not Xen style (4 spaces).

~Andrew



 


Rackspace

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