Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1705973

Re: [PATCH v3] xen: get rid of paravirt op adjust_exception_frame

From Andy Lutomirski <luto@amacapital.net>
Newsgroups linux.kernel
Subject Re: [PATCH v3] xen: get rid of paravirt op adjust_exception_frame
Date 2017-08-08 05:00 +0200
Message-ID <uc2Up-1xb-1@gated-at.bofh.it> (permalink)
References <uaqxQ-1Y5-25@gated-at.bofh.it> <ubXi1-5AS-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Aug 7, 2017 at 1:56 PM, Boris Ostrovsky
<boris.ostrovsky@oracle.com> wrote:
>
>> diff --git a/arch/x86/xen/enlighten_pv.c b/arch/x86/xen/enlighten_pv.c
>> index 811e4ddb3f37..a3dcd83187ce 100644
>> --- a/arch/x86/xen/enlighten_pv.c
>> +++ b/arch/x86/xen/enlighten_pv.c
>> @@ -579,6 +579,71 @@ static void xen_write_ldt_entry(struct desc_struct *dt, int entrynum,
>>       preempt_enable();
>>  }
>>
>> +#ifdef CONFIG_X86_64
>> +static struct {
>> +     void (*orig)(void);
>> +     void (*xen)(void);
>> +     bool ist_okay;
>> +     bool handle;
>> +} trap_array[] = {
>> +     { debug, xen_xendebug, true, true },
>> +     { int3, xen_xenint3, true, true },
>> +     { double_fault, xen_double_fault, true, false },
>
> Is it really worth adding 'handle' member to the structure because of a
> single special case? We don't expect to ever have another such vector.
>
> (TBH, I think current implementation of cvt_gate_to_trap() is clearer,
> even if it is not as general as what is in this patch. I know that Andy
> disagrees).

I have no real opinion either way.  I just think it's nicer to put it
in cvt_gate_to_trap() instead of the the traps.c setup code.

--Andy

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3] xen: get rid of paravirt op adjust_exception_frame Juergen Gross <jgross@suse.com> - 2017-08-03 17:50 +0200
  Re: [PATCH v3] xen: get rid of paravirt op adjust_exception_frame Boris Ostrovsky <boris.ostrovsky@oracle.com> - 2017-08-07 23:00 +0200
    Re: [PATCH v3] xen: get rid of paravirt op adjust_exception_frame Andy Lutomirski <luto@amacapital.net> - 2017-08-08 05:00 +0200
    Re: [PATCH v3] xen: get rid of paravirt op adjust_exception_frame Juergen Gross <jgross@suse.com> - 2017-08-08 09:10 +0200
      Re: [Xen-devel] [PATCH v3] xen: get rid of paravirt op  adjust_exception_frame Andrew Cooper <andrew.cooper3@citrix.com> - 2017-08-08 12:10 +0200

csiph-web