All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Boris Ostrovsky <boris.ostrovsky@oracle.com>,
	Jan Beulich <JBeulich@suse.com>, Chao Gao <chao.gao@intel.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Ankur Arora <ankur.a.arora@oracle.com>,
	xen-devel@lists.xen.org
Subject: Re: [PATCH] x86/vlapic: Don't reset APIC mode/ID when handling INIT signal
Date: Wed, 19 Apr 2017 16:13:07 +0200	[thread overview]
Message-ID: <4d5a9e10-f680-278a-af11-7aab5562c97c@suse.com> (raw)
In-Reply-To: <fb1476ed-33ec-2a07-bd53-022097ac1398@suse.com>

On 19/04/17 15:58, Juergen Gross wrote:
> On 19/04/17 15:43, Boris Ostrovsky wrote:
>>
>>
>> On 04/19/2017 09:21 AM, Jan Beulich wrote:
>>>>>> On 19.04.17 at 06:56, <chao.gao@intel.com> wrote:
>>>> On Wed, Apr 19, 2017 at 02:48:57AM -0600, Jan Beulich wrote:
>>>>>>>> On 18.04.17 at 23:51, <chao.gao@intel.com> wrote:
>>>>>> HVM guest can't enable x2apic as XENFEAT_hvm_pirqs is exposed to it.
>>>>>> Why we have this restriction? As a consequence, This patch isn't
>>>>>> tested in that case.
>>>>>
>>>>> HVM guests very well can use x2APIC, I'm seeing them use it all
>>>>> the time. Please be more specific with your question.
>>>>
>>>> OK. I failed to enable guest's x2apic, with the output: IRQ Remapping
>>>> doesn't
>>>> support X2APIC mode. Eventually, I found the xen_x2apic_para_available()
>>>> in linux kernel and it returns false when Xen exposes
>>>> XENFEAT_hvm_pirqs to
>>>> guest.
>>>
>>> Looks more like a Linux/pvops question, which I continue to not
>>> really be an expert on. Let's ask the maintainers (now Cc-ed)
>>> (but it may well be that this simply depends on whether you
>>> enable PVHVM mode)...
>>
>> Interestingly enough, I was looking at this last week and wondering why
>> it was there. Ankur (copied) found an issue related to x2apic he thought
>> was PVH-specific, but that was because HVM guests don't turn it on.
>>
>> Konrad couldn't remember why it was there neither.
> 
> I think this is the answer:
> 
> https://lists.xen.org/archives/html/xen-devel/2010-12/msg00373.html
> 
> Basically some very old assumption...
> 
> I think we can remove the offending test and do some more cleanup in
> this area (I think there are some #ifdef's and tests which can be
> removed, too).
> 
> I'll post some patches.

Thinking more about it: now is a bad time. This would make the planned
revert of 72a9b186292 and da72ff5bfcb0 even more difficult.


Juergen


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

      reply	other threads:[~2017-04-19 14:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-18 21:51 [PATCH] x86/vlapic: Don't reset APIC mode/ID when handling INIT signal Chao Gao
2017-04-19  8:48 ` Jan Beulich
2017-04-19  4:56   ` Chao Gao
2017-04-19 13:21     ` Jan Beulich
2017-04-19 13:43       ` Boris Ostrovsky
2017-04-19 13:58         ` Juergen Gross
2017-04-19 14:13           ` Juergen Gross [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d5a9e10-f680-278a-af11-7aab5562c97c@suse.com \
    --to=jgross@suse.com \
    --cc=JBeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=ankur.a.arora@oracle.com \
    --cc=boris.ostrovsky@oracle.com \
    --cc=chao.gao@intel.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.