WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] RE: [PATCH] Add config check for cpu hotplug code

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-devel] RE: [PATCH] Add config check for cpu hotplug code
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Fri, 11 Dec 2009 15:46:25 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Yu, Ke" <ke.yu@xxxxxxxxx>
Delivery-date: Thu, 10 Dec 2009 23:47:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B216B67.5040104@xxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E2263E4A5B2284449EEBD0AAB751098418E634ABE6@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4B216B67.5040104@xxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acp54cPh9ZD+ied7TQaUIMW+R1/dJAAUea4A
Thread-topic: [PATCH] Add config check for cpu hotplug code
I just tested disable acpi processor for my patch, so didn't notice this issue.

Today I try to build the drivers/xen/acpi_processor.c as module and get compile 
issue, seems it mainly because the xen code in acpi directory is not cleanup 
still.
I will talk with Ke for the method. Ke has suggested me to make the 
processor_cntl_xen_notify as a callback registered. 

--jyh

The patch I used to switch to module:
--- a/drivers/xen/Kconfig
+++ b/drivers/xen/Kconfig
@@ -182,5 +182,5 @@ config XEN_MCE
 config ACPI_PROCESSOR_XEN
    tristate
    depends on XEN_DOM0 && ACPI_PROCESSOR && CPU_FREQ
-   default y
+   default m
..
The build error result:
drivers/built-in.o: In function `acpi_processor_get_power_info':
processor_idle.c:(.text+0x42698): undefined reference to 
`processor_cntl_xen_power_cache'
drivers/built-in.o: In function `xen_acpi_processor_cst_has_changed':
(.text+0x42a32): undefined reference to `processor_cntl_xen_notify'
drivers/built-in.o: In function `xen_acpi_processor_get_performance':
(.text+0x43d40): undefined reference to `processor_cntl_xen_notify'
drivers/built-in.o: In function `xen_acpi_processor_ppc_has_changed':
(.text+0x44462): undefined reference to `processor_cntl_xen_notify'
drivers/built-in.o: In function `acpi_processor_hotplug_notify':
processor_core.c:(.ref.text+0xb85): undefined reference to 
`processor_cntl_xen_notify'
processor_core.c:(.ref.text+0xbc5): undefined reference to 
`processor_cntl_xen_notify'
drivers/built-in.o:processor_core.c:(.ref.text+0xbee): more undefined 
references to `processor_cntl_xen_notify' follow

--jyh

>-----Original Message-----
>From: Jeremy Fitzhardinge [mailto:jeremy@xxxxxxxx]
>Sent: Friday, December 11, 2009 5:43 AM
>To: Jiang, Yunhong
>Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
>Subject: Re: [PATCH] Add config check for cpu hotplug code
>
>On 12/09/09 20:14, Jiang, Yunhong wrote:
>> For acpi_parser branch.
>>
>> Add CONFIG check to xen_get_apic_id() and xen_hotplug_notifier().
>>
>
>xen/acpi_processor doesn't work as a module.  The module load fails with:
>
>acpi_processor: Unknown symbol xen_domain_type
>acpi_processor: Unknown symbol xen_start_info
>acpi_processor: Unknown symbol hypercall_page
>
>I think its missing a module license.
>
>     J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>