Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-06 Thread Benjamin Herrenschmidt
On Sun, 2012-10-07 at 00:54 +1000, David Gibson wrote: > I also don't see how it helps in this situation. The hotplug will > still be initiated by qemu, so we'd have to work out how qemu > communicates the info to RTAS, and how RTAS communicates it to the > kernel, doubling the work. This is not

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-06 Thread David Gibson
On Sat, Oct 06, 2012 at 06:49:13AM +1000, Benjamin Herrenschmidt wrote: > On Fri, 2012-10-05 at 09:42 -0500, Anthony Liguori wrote: > > > - We have a problem with PCI. Currently, the content of the PCI > > > bus(ses) is discovered by SLOF running inside the guest. Not by qemu. > > > It's SLOF that

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-05 Thread Benjamin Herrenschmidt
On Fri, 2012-10-05 at 08:26 -0700, Erlon Cruz wrote: > > > > Why not add a proper RTAS and do this work there? > > The RTAS call is how the guest will communicate with the host. It > doesn't have a way to get interrupted and notified about any changes. > So > to start the changing of something,

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-05 Thread Benjamin Herrenschmidt
On Fri, 2012-10-05 at 09:42 -0500, Anthony Liguori wrote: > > - We have a problem with PCI. Currently, the content of the PCI > > bus(ses) is discovered by SLOF running inside the guest. Not by qemu. > > It's SLOF that assigns the BARs and create the device-tree nodes for the > > various PCI devic

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-05 Thread Erlon Cruz
On 10/05/2012 11:42 AM, Anthony Liguori wrote: > Benjamin Herrenschmidt writes: > >> On Wed, 2012-09-12 at 17:53 +0200, Alexander Graf wrote: >>> On 09/12/2012 04:54 PM, Erlon Cruz wrote: Hi all, We are planning to implement DLPAR capacity on QEMU pSeries. As we >>> What is DLPAR? H

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-05 Thread Anthony Liguori
Benjamin Herrenschmidt writes: > On Wed, 2012-09-12 at 17:53 +0200, Alexander Graf wrote: >> On 09/12/2012 04:54 PM, Erlon Cruz wrote: >> > Hi all, >> > >> > We are planning to implement DLPAR capacity on QEMU pSeries. As we >> >> What is DLPAR? Hotplug support? > > Yes. > >> > lack of experienc

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-10-05 Thread Erlon Cruz
Hi all, Just retaking the discussion of some days ago. After some discussions here and considering the suggestions in this thread, we got 3 main ideas for the DLPAR on QEMU/KVM. 1 - introduce a new device/driver that will be used to communicate changes in the DT to the guest + make thinks clea

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-13 Thread Benjamin Herrenschmidt
On Thu, 2012-09-13 at 12:15 -0300, Erlon Cruz wrote: > >> > lack of experience in the internals of the arch we would like you guys > >> > to give us some design directions > >> > and confirm if we going in the right direction. Our first idea is: > >> > > >> > 1 - to patch 'spapr.c' so it can

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-13 Thread Erlon Cruz
> On Wed, Sep 12, 2012 at 6:48 PM, Benjamin Herrenschmidt > wrote: > On Wed, 2012-09-12 at 17:53 +0200, Alexander Graf wrote: >> On 09/12/2012 04:54 PM, Erlon Cruz wrote: >> > Hi all, >> > >> > We are planning to implement DLPAR capacity on QEMU pSeries. As we >> >> What is DLPAR? Hotplug support

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-12 Thread Benjamin Herrenschmidt
On Wed, 2012-09-12 at 17:53 +0200, Alexander Graf wrote: > On 09/12/2012 04:54 PM, Erlon Cruz wrote: > > Hi all, > > > > We are planning to implement DLPAR capacity on QEMU pSeries. As we > > What is DLPAR? Hotplug support? Yes. > > lack of experience in the internals of the arch we would like y

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-12 Thread Alexander Graf
On 12.09.2012, at 22:56, Erlon Cruz wrote: > On Wed, Sep 12, 2012 at 12:53 PM, Alexander Graf wrote: >> On 09/12/2012 04:54 PM, Erlon Cruz wrote: >>> >>> Hi all, >>> >>> We are planning to implement DLPAR capacity on QEMU pSeries. As we >> >> >> What is DLPAR? Hotplug support? > > Yes, ba

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-12 Thread Erlon Cruz
On Wed, Sep 12, 2012 at 12:53 PM, Alexander Graf wrote: > On 09/12/2012 04:54 PM, Erlon Cruz wrote: >> >> Hi all, >> >> We are planning to implement DLPAR capacity on QEMU pSeries. As we > > > What is DLPAR? Hotplug support? Yes, basically the way PowerVM uses to dynamically add memory, cpu, and

Re: [Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-12 Thread Alexander Graf
On 09/12/2012 04:54 PM, Erlon Cruz wrote: Hi all, We are planning to implement DLPAR capacity on QEMU pSeries. As we What is DLPAR? Hotplug support? lack of experience in the internals of the arch we would like you guys to give us some design directions and confirm if we going in the right d

[Qemu-devel] Enablig DLPAR capacity on QEMU pSeries

2012-09-12 Thread Erlon Cruz
Hi all, We are planning to implement DLPAR capacity on QEMU pSeries. As we lack of experience in the internals of the arch we would like you guys to give us some design directions and confirm if we going in the right direction. Our first idea is: 1 - to patch 'spapr.c' so it can dynamically i