Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-22 Thread Marcel Apfelbaum
On Sun, 2014-06-22 at 14:11 +0300, Michael S. Tsirkin wrote: > On Sun, Jun 22, 2014 at 01:52:46PM +0300, Michael S. Tsirkin wrote: > > On Sun, Jun 22, 2014 at 01:47:24PM +0300, Marcel Apfelbaum wrote: > > > On Thu, 2014-06-19 at 17:39 +0300, Michael S. Tsirkin wrote: > > > > On Thu, Jun 19, 2014 at

Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-22 Thread Michael S. Tsirkin
On Sun, Jun 22, 2014 at 01:52:46PM +0300, Michael S. Tsirkin wrote: > On Sun, Jun 22, 2014 at 01:47:24PM +0300, Marcel Apfelbaum wrote: > > On Thu, 2014-06-19 at 17:39 +0300, Michael S. Tsirkin wrote: > > > On Thu, Jun 19, 2014 at 04:52:20PM +0300, Marcel Apfelbaum wrote: > > > > It is needed by ho

Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-22 Thread Michael S. Tsirkin
On Sun, Jun 22, 2014 at 01:47:24PM +0300, Marcel Apfelbaum wrote: > On Thu, 2014-06-19 at 17:39 +0300, Michael S. Tsirkin wrote: > > On Thu, Jun 19, 2014 at 04:52:20PM +0300, Marcel Apfelbaum wrote: > > > It is needed by hot-unplug in order to get an indication > > > from the OS when the device can

Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-22 Thread Marcel Apfelbaum
On Thu, 2014-06-19 at 17:39 +0300, Michael S. Tsirkin wrote: > On Thu, Jun 19, 2014 at 04:52:20PM +0300, Marcel Apfelbaum wrote: > > It is needed by hot-unplug in order to get an indication > > from the OS when the device can be physically detached. > > > > Signed-off-by: Marcel Apfelbaum > > ---

Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-19 Thread Paolo Bonzini
Il 19/06/2014 16:39, Michael S. Tsirkin ha scritto: > pci_word_test_and_set_mask(dev->wmask + pos + PCI_EXP_SLTCTL, > PCI_EXP_SLTCTL_PIC | > + PCI_EXP_SLTCTL_PCC | > PCI_EXP_SLTCTL_AIC | >

Re: [Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-19 Thread Michael S. Tsirkin
On Thu, Jun 19, 2014 at 04:52:20PM +0300, Marcel Apfelbaum wrote: > It is needed by hot-unplug in order to get an indication > from the OS when the device can be physically detached. > > Signed-off-by: Marcel Apfelbaum > --- > hw/pci/pcie.c | 15 ++- > include/hw/pci/pci

[Qemu-devel] [PATCH 2/3] hw/pcie: implement power controller functionality

2014-06-19 Thread Marcel Apfelbaum
It is needed by hot-unplug in order to get an indication from the OS when the device can be physically detached. Signed-off-by: Marcel Apfelbaum --- hw/pci/pcie.c | 15 ++- include/hw/pci/pcie_regs.h | 2 ++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a