* [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new
@ 2011-04-15 8:41 ZhouPeng
2011-04-18 13:50 ` Stefano Stabellini
2011-05-09 8:20 ` Ian Jackson
0 siblings, 2 replies; 9+ messages in thread
From: ZhouPeng @ 2011-04-15 8:41 UTC (permalink / raw)
To: Xen-Devel (E-mail), Ian Campbell, ian.jackson
[-- Attachment #1.1: Type: text/plain, Size: 1100 bytes --]
Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn>
tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new
diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800
+++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800
@@ -120,7 +120,7 @@ static char ** libxl__build_device_model
if (info->soundhw) {
flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL);
}
- if (info->apic) {
+ if (info->acpi) {
flexarray_append(dm_args, "-acpi");
}
if (info->vcpus > 1) {
@@ -268,7 +268,7 @@ static char ** libxl__build_device_model
if (info->soundhw) {
flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL);
}
- if (!info->apic) {
+ if (!info->acpi) {
flexarray_append(dm_args, "-no-acpi");
}
if (info->vcpus > 1) {
--
Zhou Peng
Operating System Technology Group
Institute of Software, the Chinese Academy of Sciences (ISCAS)
<ailvpeng25@gmail.com>
[-- Attachment #1.2: Type: text/html, Size: 1381 bytes --]
[-- Attachment #2: apic-acpi.diff --]
[-- Type: text/x-patch, Size: 959 bytes --]
Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn>
tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new
diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c
--- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800
+++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800
@@ -120,7 +120,7 @@ static char ** libxl__build_device_model
if (info->soundhw) {
flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL);
}
- if (info->apic) {
+ if (info->acpi) {
flexarray_append(dm_args, "-acpi");
}
if (info->vcpus > 1) {
@@ -268,7 +268,7 @@ static char ** libxl__build_device_model
if (info->soundhw) {
flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL);
}
- if (!info->apic) {
+ if (!info->acpi) {
flexarray_append(dm_args, "-no-acpi");
}
if (info->vcpus > 1) {
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-04-15 8:41 [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new ZhouPeng @ 2011-04-18 13:50 ` Stefano Stabellini 2011-04-19 5:14 ` ZhouPeng 2011-05-09 8:20 ` Ian Jackson 1 sibling, 1 reply; 9+ messages in thread From: Stefano Stabellini @ 2011-04-18 13:50 UTC (permalink / raw) To: ZhouPeng; +Cc: Ian Campbell, Xen-Devel (E-mail), Ian Jackson [-- Attachment #1: Type: text/plain, Size: 1424 bytes --] On Fri, 15 Apr 2011, ZhouPeng wrote: > Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> > > tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new > this patch should be applied ASAP and backported to 4.1. > diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c > --- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800 > +++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800 > @@ -120,7 +120,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (info->apic) { > + if (info->acpi) { > flexarray_append(dm_args, "-acpi"); > } > if (info->vcpus > 1) { > @@ -268,7 +268,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (!info->apic) { > + if (!info->acpi) { > flexarray_append(dm_args, "-no-acpi"); > } > if (info->vcpus > 1) { > > -- > Zhou Peng > Operating System Technology Group > Institute of Software, the Chinese Academy of Sciences (ISCAS) > > > [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-04-18 13:50 ` Stefano Stabellini @ 2011-04-19 5:14 ` ZhouPeng 0 siblings, 0 replies; 9+ messages in thread From: ZhouPeng @ 2011-04-19 5:14 UTC (permalink / raw) To: Stefano Stabellini; +Cc: Xen-Devel (E-mail) Thanks. 2011/4/18 Stefano Stabellini <stefano.stabellini@eu.citrix.com>: > On Fri, 15 Apr 2011, ZhouPeng wrote: >> Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> >> >> tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new >> > > this patch should be applied ASAP and backported to 4.1. > > >> diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c >> --- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800 >> +++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800 >> @@ -120,7 +120,7 @@ static char ** libxl__build_device_model >> if (info->soundhw) { >> flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); >> } >> - if (info->apic) { >> + if (info->acpi) { >> flexarray_append(dm_args, "-acpi"); >> } >> if (info->vcpus > 1) { >> @@ -268,7 +268,7 @@ static char ** libxl__build_device_model >> if (info->soundhw) { >> flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); >> } >> - if (!info->apic) { >> + if (!info->acpi) { >> flexarray_append(dm_args, "-no-acpi"); >> } >> if (info->vcpus > 1) { >> >> -- >> Zhou Peng >> Operating System Technology Group >> Institute of Software, the Chinese Academy of Sciences (ISCAS) >> >> >> -- Zhou Peng Operating System Technology Group Institute of Software, the Chinese Academy of Sciences (ISCAS) ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-04-15 8:41 [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new ZhouPeng 2011-04-18 13:50 ` Stefano Stabellini @ 2011-05-09 8:20 ` Ian Jackson 2011-05-09 9:10 ` Ian Campbell 2011-05-10 12:07 ` ZhouPeng 1 sibling, 2 replies; 9+ messages in thread From: Ian Jackson @ 2011-05-09 8:20 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail), Ian Campbell ZhouPeng writes ("[Xen-devel] [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new"): > diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c > --- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800 > +++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800 > @@ -120,7 +120,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (info->apic) { > + if (info->acpi) { > flexarray_append(dm_args, "-acpi"); > } > if (info->vcpus > 1) { Sorry for sitting on this. There is obviously a problem here but your patch didn't compile (whether on 4.1 or unstable). I think I've fixed it up. Please comment on the proposed patch below. Thanks, Ian. libxl: Fix apic/acpi confusion "apic" was written a couple of times where "acpi" was meant. Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> diff -r 4b0692880dfa tools/libxl/libxl.idl --- a/tools/libxl/libxl.idl Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/libxl.idl Mon May 09 09:18:32 2011 +0100 @@ -217,7 +217,7 @@ libxl_device_model_info = Struct("device ("usb", bool, False, "usb support enabled or disabled"), ("usbdevice", string, False, "enable usb mouse: tablet for absolute mouse, mouse for PS/2 protocol relative mouse"), ("soundhw", string, False, "enable sound hardware"), - ("apic", bool, False, "apic enabled or disabled"), + ("acpi", bool, False, "acpi enabled or disabled"), ("vcpus", integer, False, "max number of vcpus"), ("vcpu_avail", integer, False, "vcpus actually available"), ("xen_platform_pci", bool, False, "enable/disable the xen platform pci device"), diff -r 4b0692880dfa tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/libxl_create.c Mon May 09 09:18:32 2011 +0100 @@ -113,7 +113,7 @@ void libxl_init_dm_info(libxl_device_mod dm_info->device_model = NULL; dm_info->target_ram = libxl__sizekb_to_mb(b_info->target_memkb); dm_info->videoram = libxl__sizekb_to_mb(b_info->video_memkb); - dm_info->apic = b_info->u.hvm.apic; + dm_info->acpi = b_info->u.hvm.acpi; dm_info->vcpus = b_info->max_vcpus; dm_info->vcpu_avail = b_info->cur_vcpus; diff -r 4b0692880dfa tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/libxl_dm.c Mon May 09 09:18:32 2011 +0100 @@ -162,7 +162,7 @@ static char ** libxl__build_device_model if (info->soundhw) { flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); } - if (info->apic) { + if (info->acpi) { flexarray_append(dm_args, "-acpi"); } if (info->vcpus > 1) { @@ -315,7 +315,7 @@ static char ** libxl__build_device_model if (info->soundhw) { flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); } - if (!info->apic) { + if (!info->acpi) { flexarray_append(dm_args, "-no-acpi"); } if (info->vcpus > 1) { diff -r 4b0692880dfa tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/xl_cmdimpl.c Mon May 09 09:18:32 2011 +0100 @@ -366,7 +366,7 @@ static void printf_info(int domid, printf("\t\t\t(boot %s)\n", dm_info->boot); printf("\t\t\t(usb %d)\n", dm_info->usb); printf("\t\t\t(usbdevice %s)\n", dm_info->usbdevice); - printf("\t\t\t(apic %d)\n", dm_info->apic); + printf("\t\t\t(acpi %d)\n", dm_info->acpi); printf("\t\t)\n"); } else { printf("\t\t(linux %d)\n", b_info->hvm); ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-05-09 8:20 ` Ian Jackson @ 2011-05-09 9:10 ` Ian Campbell 2011-05-10 12:07 ` ZhouPeng 1 sibling, 0 replies; 9+ messages in thread From: Ian Campbell @ 2011-05-09 9:10 UTC (permalink / raw) To: Ian Jackson; +Cc: ZhouPeng, Xen-Devel (E-mail) On Mon, 2011-05-09 at 09:20 +0100, Ian Jackson wrote: > ZhouPeng writes ("[Xen-devel] [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new"): > > diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c > > --- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800 > > +++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800 > > @@ -120,7 +120,7 @@ static char ** libxl__build_device_model > > if (info->soundhw) { > > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > > } > > - if (info->apic) { > > + if (info->acpi) { > > flexarray_append(dm_args, "-acpi"); > > } > > if (info->vcpus > 1) { > > Sorry for sitting on this. There is obviously a problem here but your > patch didn't compile (whether on 4.1 or unstable). > > I think I've fixed it up. Please comment on the proposed patch below. > > Thanks, > Ian. > > > libxl: Fix apic/acpi confusion > > "apic" was written a couple of times where "acpi" was meant. I was initially confused since xm/xend supports both acpi and apic options so I suspected just switching to using acpi consistently wasn't quite right. However looking closer I see that only acpi needs propagating to the device model and that libxl_domain_build_info correctly contains and propagates both acpi and apic settings. So, looks good to me. > Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> > Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> > > > diff -r 4b0692880dfa tools/libxl/libxl.idl > --- a/tools/libxl/libxl.idl Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/libxl.idl Mon May 09 09:18:32 2011 +0100 > @@ -217,7 +217,7 @@ libxl_device_model_info = Struct("device > ("usb", bool, False, "usb support enabled or disabled"), > ("usbdevice", string, False, "enable usb mouse: tablet for absolute mouse, mouse for PS/2 protocol relative mouse"), > ("soundhw", string, False, "enable sound hardware"), > - ("apic", bool, False, "apic enabled or disabled"), > + ("acpi", bool, False, "acpi enabled or disabled"), > ("vcpus", integer, False, "max number of vcpus"), > ("vcpu_avail", integer, False, "vcpus actually available"), > ("xen_platform_pci", bool, False, "enable/disable the xen platform pci device"), > diff -r 4b0692880dfa tools/libxl/libxl_create.c > --- a/tools/libxl/libxl_create.c Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/libxl_create.c Mon May 09 09:18:32 2011 +0100 > @@ -113,7 +113,7 @@ void libxl_init_dm_info(libxl_device_mod > dm_info->device_model = NULL; > dm_info->target_ram = libxl__sizekb_to_mb(b_info->target_memkb); > dm_info->videoram = libxl__sizekb_to_mb(b_info->video_memkb); > - dm_info->apic = b_info->u.hvm.apic; > + dm_info->acpi = b_info->u.hvm.acpi; > dm_info->vcpus = b_info->max_vcpus; > dm_info->vcpu_avail = b_info->cur_vcpus; > > diff -r 4b0692880dfa tools/libxl/libxl_dm.c > --- a/tools/libxl/libxl_dm.c Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/libxl_dm.c Mon May 09 09:18:32 2011 +0100 > @@ -162,7 +162,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (info->apic) { > + if (info->acpi) { > flexarray_append(dm_args, "-acpi"); > } > if (info->vcpus > 1) { > @@ -315,7 +315,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (!info->apic) { > + if (!info->acpi) { > flexarray_append(dm_args, "-no-acpi"); > } > if (info->vcpus > 1) { > diff -r 4b0692880dfa tools/libxl/xl_cmdimpl.c > --- a/tools/libxl/xl_cmdimpl.c Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/xl_cmdimpl.c Mon May 09 09:18:32 2011 +0100 > @@ -366,7 +366,7 @@ static void printf_info(int domid, > printf("\t\t\t(boot %s)\n", dm_info->boot); > printf("\t\t\t(usb %d)\n", dm_info->usb); > printf("\t\t\t(usbdevice %s)\n", dm_info->usbdevice); > - printf("\t\t\t(apic %d)\n", dm_info->apic); > + printf("\t\t\t(acpi %d)\n", dm_info->acpi); > printf("\t\t)\n"); > } else { > printf("\t\t(linux %d)\n", b_info->hvm); ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-05-09 8:20 ` Ian Jackson 2011-05-09 9:10 ` Ian Campbell @ 2011-05-10 12:07 ` ZhouPeng 2011-05-10 12:23 ` Ian Campbell 1 sibling, 1 reply; 9+ messages in thread From: ZhouPeng @ 2011-05-10 12:07 UTC (permalink / raw) To: Ian Jackson; +Cc: Xen-Devel (E-mail), Ian Campbell 2011/5/9 Ian Jackson <Ian.Jackson@eu.citrix.com>: > ZhouPeng writes ("[Xen-devel] [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new"): >> diff -r 6871474a2a09 -r 01f8b29dda8e tools/libxl/libxl_dm.c >> --- a/tools/libxl/libxl_dm.c Fri Apr 15 10:06:59 2011 +0800 >> +++ b/tools/libxl/libxl_dm.c Fri Apr 15 15:17:42 2011 +0800 >> @@ -120,7 +120,7 @@ static char ** libxl__build_device_model >> if (info->soundhw) { >> flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); >> } >> - if (info->apic) { >> + if (info->acpi) { >> flexarray_append(dm_args, "-acpi"); >> } >> if (info->vcpus > 1) { > > Sorry for sitting on this. There is obviously a problem here but your > patch didn't compile (whether on 4.1 or unstable). > I think I've fixed it up. Please comment on the proposed patch below. It looks good for me. Thanks, BTW: Not be related with this one, The apic don't need to be propagated to device-model, but it may be needed to give user the chance to set apic = 0, which is another patch. > Thanks, > Ian. > > > libxl: Fix apic/acpi confusion > > "apic" was written a couple of times where "acpi" was meant. > > Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> > Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> > > > diff -r 4b0692880dfa tools/libxl/libxl.idl > --- a/tools/libxl/libxl.idl Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/libxl.idl Mon May 09 09:18:32 2011 +0100 > @@ -217,7 +217,7 @@ libxl_device_model_info = Struct("device > ("usb", bool, False, "usb support enabled or disabled"), > ("usbdevice", string, False, "enable usb mouse: tablet for absolute mouse, mouse for PS/2 protocol relative mouse"), > ("soundhw", string, False, "enable sound hardware"), > - ("apic", bool, False, "apic enabled or disabled"), > + ("acpi", bool, False, "acpi enabled or disabled"), > ("vcpus", integer, False, "max number of vcpus"), > ("vcpu_avail", integer, False, "vcpus actually available"), > ("xen_platform_pci", bool, False, "enable/disable the xen platform pci device"), > diff -r 4b0692880dfa tools/libxl/libxl_create.c > --- a/tools/libxl/libxl_create.c Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/libxl_create.c Mon May 09 09:18:32 2011 +0100 > @@ -113,7 +113,7 @@ void libxl_init_dm_info(libxl_device_mod > dm_info->device_model = NULL; > dm_info->target_ram = libxl__sizekb_to_mb(b_info->target_memkb); > dm_info->videoram = libxl__sizekb_to_mb(b_info->video_memkb); > - dm_info->apic = b_info->u.hvm.apic; > + dm_info->acpi = b_info->u.hvm.acpi; > dm_info->vcpus = b_info->max_vcpus; > dm_info->vcpu_avail = b_info->cur_vcpus; > > diff -r 4b0692880dfa tools/libxl/libxl_dm.c > --- a/tools/libxl/libxl_dm.c Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/libxl_dm.c Mon May 09 09:18:32 2011 +0100 > @@ -162,7 +162,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (info->apic) { > + if (info->acpi) { > flexarray_append(dm_args, "-acpi"); > } > if (info->vcpus > 1) { > @@ -315,7 +315,7 @@ static char ** libxl__build_device_model > if (info->soundhw) { > flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); > } > - if (!info->apic) { > + if (!info->acpi) { > flexarray_append(dm_args, "-no-acpi"); > } > if (info->vcpus > 1) { > diff -r 4b0692880dfa tools/libxl/xl_cmdimpl.c > --- a/tools/libxl/xl_cmdimpl.c Thu May 05 17:40:34 2011 +0100 > +++ b/tools/libxl/xl_cmdimpl.c Mon May 09 09:18:32 2011 +0100 > @@ -366,7 +366,7 @@ static void printf_info(int domid, > printf("\t\t\t(boot %s)\n", dm_info->boot); > printf("\t\t\t(usb %d)\n", dm_info->usb); > printf("\t\t\t(usbdevice %s)\n", dm_info->usbdevice); > - printf("\t\t\t(apic %d)\n", dm_info->apic); > + printf("\t\t\t(acpi %d)\n", dm_info->acpi); > printf("\t\t)\n"); > } else { > printf("\t\t(linux %d)\n", b_info->hvm); > -- Zhou Peng Operating System Technology Group Institute of Software, the Chinese Academy of Sciences (ISCAS) ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-05-10 12:07 ` ZhouPeng @ 2011-05-10 12:23 ` Ian Campbell 2011-05-11 2:11 ` ZhouPeng 0 siblings, 1 reply; 9+ messages in thread From: Ian Campbell @ 2011-05-10 12:23 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail), Ian Jackson On Tue, 2011-05-10 at 13:07 +0100, ZhouPeng wrote: > The apic don't need to be propagated to device-model, > but it may be needed to give user the chance to set apic = 0, which > is another patch. I think that already exists and it looks like it should work (although I didn't actually try it). libxl_domain_build_info->u.hvm.apic is parsed in parse_config_data in xl and eventually makes its way to hvm_build_set_params in libxl where it is propagated into the hvminfo page. Ian. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-05-10 12:23 ` Ian Campbell @ 2011-05-11 2:11 ` ZhouPeng 2011-05-17 16:28 ` Ian Jackson 0 siblings, 1 reply; 9+ messages in thread From: ZhouPeng @ 2011-05-11 2:11 UTC (permalink / raw) To: Ian Campbell; +Cc: Xen-Devel (E-mail), Ian Jackson, Stefano Stabellini 2011/5/10 Ian Campbell <Ian.Campbell@eu.citrix.com>: > I think that already exists and it looks like it should work (although I > didn't actually try it). > > libxl_domain_build_info->u.hvm.apic is parsed in parse_config_data in xl > and eventually makes its way to hvm_build_set_params in libxl where it > is propagated into the hvminfo page. So, you are right, and the patch is enough without omiting apic. My glimpse of the patch ignored that libxl_domain_build_info is there. I think there is no problem now. How about you? libxl: Fix apic/acpi confusion "apic" was written a couple of times where "acpi" was meant. Signed-off-by: Zhou Peng <zhoupeng@nfs.iscas.ac.cn> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <Ian.Campbell@eu.citrix.com> Acked-by: "Stefano Stabellini" <stefano.stabellini@eu.citrix.com> diff -r 4b0692880dfa tools/libxl/libxl.idl --- a/tools/libxl/libxl.idl Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/libxl.idl Mon May 09 09:18:32 2011 +0100 @@ -217,7 +217,7 @@ libxl_device_model_info = Struct("device ("usb", bool, False, "usb support enabled or disabled"), ("usbdevice", string, False, "enable usb mouse: tablet for absolute mouse, mouse for PS/2 protocol relative mouse"), ("soundhw", string, False, "enable sound hardware"), - ("apic", bool, False, "apic enabled or disabled"), + ("acpi", bool, False, "acpi enabled or disabled"), ("vcpus", integer, False, "max number of vcpus"), ("vcpu_avail", integer, False, "vcpus actually available"), ("xen_platform_pci", bool, False, "enable/disable the xen platform pci device"), diff -r 4b0692880dfa tools/libxl/libxl_create.c --- a/tools/libxl/libxl_create.c Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/libxl_create.c Mon May 09 09:18:32 2011 +0100 @@ -113,7 +113,7 @@ void libxl_init_dm_info(libxl_device_mod dm_info->device_model = NULL; dm_info->target_ram = libxl__sizekb_to_mb(b_info->target_memkb); dm_info->videoram = libxl__sizekb_to_mb(b_info->video_memkb); - dm_info->apic = b_info->u.hvm.apic; + dm_info->acpi = b_info->u.hvm.acpi; dm_info->vcpus = b_info->max_vcpus; dm_info->vcpu_avail = b_info->cur_vcpus; diff -r 4b0692880dfa tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/libxl_dm.c Mon May 09 09:18:32 2011 +0100 @@ -162,7 +162,7 @@ static char ** libxl__build_device_model if (info->soundhw) { flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); } - if (info->apic) { + if (info->acpi) { flexarray_append(dm_args, "-acpi"); } if (info->vcpus > 1) { @@ -315,7 +315,7 @@ static char ** libxl__build_device_model if (info->soundhw) { flexarray_vappend(dm_args, "-soundhw", info->soundhw, NULL); } - if (!info->apic) { + if (!info->acpi) { flexarray_append(dm_args, "-no-acpi"); } if (info->vcpus > 1) { diff -r 4b0692880dfa tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu May 05 17:40:34 2011 +0100 +++ b/tools/libxl/xl_cmdimpl.c Mon May 09 09:18:32 2011 +0100 @@ -366,7 +366,7 @@ static void printf_info(int domid, printf("\t\t\t(boot %s)\n", dm_info->boot); printf("\t\t\t(usb %d)\n", dm_info->usb); printf("\t\t\t(usbdevice %s)\n", dm_info->usbdevice); - printf("\t\t\t(apic %d)\n", dm_info->apic); + printf("\t\t\t(acpi %d)\n", dm_info->acpi); printf("\t\t)\n"); } else { printf("\t\t(linux %d)\n", b_info->hvm); -- Zhou Peng Operating System Technology Group Institute of Software, the Chinese Academy of Sciences (ISCAS) ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new 2011-05-11 2:11 ` ZhouPeng @ 2011-05-17 16:28 ` Ian Jackson 0 siblings, 0 replies; 9+ messages in thread From: Ian Jackson @ 2011-05-17 16:28 UTC (permalink / raw) To: ZhouPeng; +Cc: Ian Campbell, Xen-Devel (E-mail), Stefano Stabellini ZhouPeng writes ("Re: [Xen-devel] [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new"): > libxl: Fix apic/acpi confusion I applied the patch, thanks. Ian. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-05-17 16:28 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2011-04-15 8:41 [PATCH] tool/libxl: mistake apic for acpi in libxl__build_device_model_args_old/new ZhouPeng 2011-04-18 13:50 ` Stefano Stabellini 2011-04-19 5:14 ` ZhouPeng 2011-05-09 8:20 ` Ian Jackson 2011-05-09 9:10 ` Ian Campbell 2011-05-10 12:07 ` ZhouPeng 2011-05-10 12:23 ` Ian Campbell 2011-05-11 2:11 ` ZhouPeng 2011-05-17 16:28 ` Ian Jackson
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).