All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] HVM vcpu add/remove
@ 2009-12-09  9:26 Liu, Jinsong
  0 siblings, 0 replies; 4+ messages in thread
From: Liu, Jinsong @ 2009-12-09  9:26 UTC (permalink / raw)
  To: xen-devel; +Cc: Keir Fraser

Hi, all

These patches are HVM vcpu add/remove patches.
With these patches, user can run-time add/remove HVM vcpus by 'cpu_set vcpu-number online/offline' at qemu monitor interface.
At HVM booting, HVM maxvcpus/vcpu_avail can be set at config file, with 'maxvcpus=x vcpus=y'

ras_xen_py_1.patch:
- currently xend has parse 'vcpus' to qemu, we need also parse 'vcpu_avail' to qemu.

ras_xen_acpi_2.patch:
In order to support HVM vcpu add/remove, we need set dsdt and madt infrastructure:
- at dsdt, define ACPI objects and control methods (like _MAT, _EJ0, _STA) for processors;
- at dsdt, define control method _L02 corresponding to SCI interrupts, build scan and notify method which trigger HVM acpi driver to add/remove cpu;
- at madt, re-order madt subitems sequence, in order to make checksum locating more creditable (will not be influenced by madt change in the future). What is more, the re-order match normal madt sequence habit;

ras_xen_hvminfo_3.patch
- currently firmware has got 'vcpus' from xend, this patch add parse 'vcpu_avail' to firmware;
- setup madt 'lapic' subitems of processors accoring to vcpu_avail;

ras_qemu_cpuset_1.patch
- setup gpe ioread/iowrite at qmeu;
- setup vcpu add/remove user interface through monitor;
- setup SCI logic;

Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ PATCH ] HVM vcpu add/remove
  2009-12-14 16:29 ` Konrad Rzeszutek Wilk
@ 2009-12-14 16:54   ` Keir Fraser
  0 siblings, 0 replies; 4+ messages in thread
From: Keir Fraser @ 2009-12-14 16:54 UTC (permalink / raw)
  To: Konrad Rzeszutek Wilk, Liu, Jinsong; +Cc: xen-devel

On 14/12/2009 16:29, "Konrad Rzeszutek Wilk" <konrad.wilk@oracle.com> wrote:

>> ras_xen_acpi_2.patch:
>> setup dsdt infrastructure by mk_dsdt.c for vcpu add/remove
>> -- By using mk_dsdt.c, it auto-produce related asl code when compiling.
>> -- It define processor related objects and control methods (_MAT, _EJ0, _STA,
>> etc). 
>> -- It also define GPE _L02 and Notify control method for SCI interrupt, which
>> will trigger HVM acpi driver to add/remove cpu.
> 
> Could you repost that patch? I am not seeing it on xen-devel?

It's in xen-unstable already, cs20638.

 -- Keir

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ PATCH ] HVM vcpu add/remove
  2009-12-13 18:01 [ PATCH ] " Liu, Jinsong
@ 2009-12-14 16:29 ` Konrad Rzeszutek Wilk
  2009-12-14 16:54   ` Keir Fraser
  0 siblings, 1 reply; 4+ messages in thread
From: Konrad Rzeszutek Wilk @ 2009-12-14 16:29 UTC (permalink / raw)
  To: Liu, Jinsong; +Cc: xen-devel, Keir Fraser

> ras_xen_acpi_2.patch:
> setup dsdt infrastructure by mk_dsdt.c for vcpu add/remove
> -- By using mk_dsdt.c, it auto-produce related asl code when compiling. 
> -- It define processor related objects and control methods (_MAT, _EJ0, _STA, etc). 
> -- It also define GPE _L02 and Notify control method for SCI interrupt, which will trigger HVM acpi driver to add/remove cpu.

Could you repost that patch? I am not seeing it on xen-devel?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ PATCH ] HVM vcpu add/remove
@ 2009-12-13 18:01 Liu, Jinsong
  2009-12-14 16:29 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Liu, Jinsong @ 2009-12-13 18:01 UTC (permalink / raw)
  To: xen-devel; +Cc: Keir Fraser

Hi, all

These patches are updated patches according to Keir's comments.
After update, it cut down patch size greatly.

Mainly 2 updates:
1. using mk_dsdt.c to auto-produce ASL instead of preprocess at dsdt.asl;
2. no re-order current madt, while at same time keep checksum right;

------------------------------------------
ras_xen_py_1.patch:
parse 'vcpu_avail' to qemu.

ras_xen_acpi_2.patch:
setup dsdt infrastructure by mk_dsdt.c for vcpu add/remove
-- By using mk_dsdt.c, it auto-produce related asl code when compiling. 
-- It define processor related objects and control methods (_MAT, _EJ0, _STA, etc). 
-- It also define GPE _L02 and Notify control method for SCI interrupt, which will trigger HVM acpi driver to add/remove cpu.

ras_xen_hvminfo_3.patch:
parse 'vcpu_avail' to firmware and set up madt accordingly
-- currently firmware has got 'vcpus' from xend, this patch add parse 'vcpu_avail' to firmware;
-- setup madt 'lapic' subitems of processors accoring to vcpus and vcpu_avail which finally come from config;

ras_qemu_cpuset_4.patch:
qemu logic for vcpu add/revmoe
-- at qemu side, get vcpu_avail which used for original cpu avail map;
-- setup gpe ioread/iowrite at qmeu;
-- setup vcpu add/remove user interface through monitor;
-- setup SCI logic;
-------------------------------------------


Thanks,
Jinsong

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-14 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-09  9:26 [PATCH] HVM vcpu add/remove Liu, Jinsong
2009-12-13 18:01 [ PATCH ] " Liu, Jinsong
2009-12-14 16:29 ` Konrad Rzeszutek Wilk
2009-12-14 16:54   ` Keir Fraser

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.