From: Daniel Schroeder <sec@dschroeder.info>
To: "Yu, Ke" <ke.yu@intel.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: pvops dom0 20090825 xen_acpi panic
Date: Fri, 28 Aug 2009 14:15:35 +0200 [thread overview]
Message-ID: <4A97CA67.1090908@dschroeder.info> (raw)
In-Reply-To: <4D05DB80B95B23498C72C700BD6C2E0B339DC003@pdsmsx502.ccr.corp.intel.com>
> I have tried 32bit case, however I cannot reproduce the kernel panic, either in 32bit dom0/32bit hypervisor case or 32bit dom0/64bit hypervisor case. if you still meet the kernel panic after applying the patch I posted, please let me know. I will dig it more.
>
i have tried the patch on bare metal (works) and under 32bit
3.4.2-rc1-pre (panic)...i dont get netconsole working, so i have no
output...hope that helps...
> Best Regards
> Ke
>
>> -----Original Message-----
>> From: xen-devel-bounces@lists.xensource.com
>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Yu, Ke
>> Sent: Friday, August 28, 2009 11:06 AM
>> To: Daniel Schroeder
>> Cc: Jeremy Fitzhardinge; xen-devel@lists.xensource.com
>> Subject: RE: [Xen-devel] pvops dom0 20090825 xen_acpi panic
>>
>> Oh I see. The following patch should fix the panic in bare metal, could you please
>> have a try? For the 32bit, I am still trying to reproduce it, will make you updated
>> later.
>>
>> Best Regards
>> Ke
>>
>> ===============
>>
>> Fix xen_acpi_processor_extcntl_init xen_start_info NULL pointer issue
>>
>> when kernel runs in bare metal, the xen_start_info could be a NULL pointer,
>> so add condition check to avoid the kernel panic.
>>
>> Signed-off-by: Yu Ke <ke.yu@intel.com>
>>
>> diff --git a/drivers/xen/acpi_processor.c b/drivers/xen/acpi_processor.c
>> index d2b76e9..6a4e8e4 100644
>> --- a/drivers/xen/acpi_processor.c
>> +++ b/drivers/xen/acpi_processor.c
>> @@ -430,10 +430,14 @@ static int xen_hotplug_notifier(struct acpi_processor
>> *pr, int event)
>>
>> static int __init xen_acpi_processor_extcntl_init(void)
>> {
>> - unsigned int pmbits = (xen_start_info->flags & SIF_PM_MASK) >> 8;
>> + unsigned int pmbits;
>>
>> - if (!pmbits)
>> + /* Only xen dom0 is allowed to handle ACPI processor info */
>> + if (!xen_initial_domain())
>> return 0;
>> +
>> + pmbits = (xen_start_info->flags & SIF_PM_MASK) >> 8;
>> +
>> if (pmbits & XEN_PROCESSOR_PM_CX)
>> xen_ops.pm_ops[PM_TYPE_IDLE] = xen_cx_notifier;
>> if (pmbits & XEN_PROCESSOR_PM_PX)
>>
>>> -----Original Message-----
>>> From: Daniel Schroeder [mailto:sec@dschroeder.info]
>>> Sent: Friday, August 28, 2009 3:27 AM
>>> To: Yu, Ke
>>> Cc: Jeremy Fitzhardinge; xen-devel@lists.xensource.com
>>> Subject: Re: [Xen-devel] pvops dom0 20090825 xen_acpi panic
>>>
>>> Hi Ke,
>>>
>>>> Could you share more info on your configuration, so that I can reproduce it?
>> E.g.
>>> is it 32bit dom0 under 64bit hypervisor? Also do you mind attach the
>>> domi0 .config file?
>>> this is under a 32bit dom0 but it even happens on bare metal...under kvm
>>> the same panic occurs...
>>> .config is here http://x17.eu/xen_acpi_panic.config.gz
>>>
>>> -
>>> daniel
>
prev parent reply other threads:[~2009-08-28 12:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-25 17:50 pvops dom0 20090825 xen_acpi panic Daniel Schroeder
2009-08-25 18:29 ` Jeremy Fitzhardinge
2009-08-26 14:39 ` Yu, Ke
2009-08-27 19:27 ` Daniel Schroeder
2009-08-28 3:06 ` Yu, Ke
2009-08-28 8:45 ` Yu, Ke
2009-08-28 12:15 ` Daniel Schroeder [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=4A97CA67.1090908@dschroeder.info \
--to=sec@dschroeder.info \
--cc=jeremy@goop.org \
--cc=ke.yu@intel.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 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.