xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@novell.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 0 of 6] Fix kexec in Xen (take 3)
Date: Wed, 25 May 2011 17:30:53 +0100	[thread overview]
Message-ID: <4DDD2EBD.3030701@citrix.com> (raw)
In-Reply-To: <4DDD47190200007800043890@vpn.id2.novell.com>



On 25/05/11 17:14, Jan Beulich wrote:
>>>> On 25.05.11 at 16:32, Andrew Cooper<andrew.cooper3@citrix.com>  wrote:
>> This set of patches is designed to get the kexec path working again on Xen
>> 4.x
>>
>> kdump kernels can't boot if x2apic mode is enabled and the ACPI tables dont
>> state this fact.  They also cant boot at all with interrupt remapping
>> enabled.
>>
>> These patches cause xen to track the BSP local APIC boot state and return to
>> it before kexec'ing to a new kernel.  It also makes sure to disable IO
>> virtualisation.
> I was about to reply to the individual patches, but they just seem
> too inconsistent to me (comments not matching code, without it
> being clear whether code or comment is wrong; functions introduced
> that have no callers). Can you work on getting them into a
> state suitable for reviewing?
I was splitting the patches up to make them smaller and modular.  With 
the patches as a full series, there are no functions without callers.

Which comments don't match the code?
> Further I don't buy your pseudo-quoting of the MP spec saying
> that secondary CPUs' local APICs have to be disabled. Keir already
> pointed out on your previous submission that in order for them to
> receive the INIT and Startup IPIs they must be enabled.
What Keir said and what the MP spec states are in direct contraction.  
Please do correct me if I have misread/misinterpreted the spec, but:

Section 3.8 states that all local APICs are disabled when the BIOS hands 
over to the OS.

and

Section 3.7.3 states that the INIT IPI twiddles the APIC reset lines, 
which enabled them when they come out of reset, thus receiving and 
handling the IPI.

~Andrew
> Jan
>
>> One area which is problematic is disabling interrupt remapping.
>> lapic_suspend() calls iommu_disable_x2apic_IR() which in a previous thread
>> was deemed to be Intel specific and only works by chance on AMD boxes by
>> effectivly being a NOP.  As lapic_suspend() is generic code, does this mean
>> that we can't/don't ever disable interrupt remapping on AMD boxes?
>>
>> Signed-off-by: Andrew Cooper<andrew.cooper3@citrix.com>
>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>
>

-- 
Andrew Cooper - Dom0 Kernel Engineer, Citrix XenServer
T: +44 (0)1223 225 900, http://www.citrix.com

  reply	other threads:[~2011-05-25 16:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 14:32 [PATCH 0 of 6] Fix kexec in Xen (take 3) Andrew Cooper
2011-05-25 14:32 ` [PATCH 1 of 6] APIC: record local APIC state on boot Andrew Cooper
2011-05-25 14:32 ` [PATCH 2 of 6] APIC: remove 'enabled_via_apicbase' variable Andrew Cooper
2011-05-25 14:32 ` [PATCH 3 of 6] APIC: add crash_disable_local_APIC Andrew Cooper
2011-05-25 14:32 ` [PATCH 4 of 6] IOMMU: Sanitise some of our pointer work Andrew Cooper
2011-05-25 17:28   ` Konrad Rzeszutek Wilk
2011-05-25 14:32 ` [PATCH 5 of 6] IOMMU: add crash_shutdown iommu_op Andrew Cooper
2011-05-25 14:32 ` [PATCH 6 of 6] KEXEC: disable iommu jumping into the kdump kernel Andrew Cooper
2011-05-25 15:01 ` [PATCH 0 of 6] Fix kexec in Xen (take 3) Wei Wang2
2011-05-25 16:14 ` Jan Beulich
2011-05-25 16:30   ` Andrew Cooper [this message]
2011-05-25 21:35     ` Keir Fraser
2011-05-26  9:12       ` Andrew Cooper
2011-05-26  9:19         ` Keir Fraser

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=4DDD2EBD.3030701@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=JBeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).