the bar index names are much similar to the bar memory regions,
distinguish them to improve the code readability.
Signed-off-by: Chen Fan <fan.c...@easystack.cn>
---
hw/display/virtio-vga.c | 4 ++--
hw/virtio/virtio-pci.c | 20 ++--
hw/virtio/virtio-pci.h | 8 -
r: context error reported 3 "Xorg" Illegal
command buffer 149816321
--
Sincerely,
Chen Fan
[root@localhost Unigine_Heaven-4.0]# ./heaven
Loading "/root/Desktop/Unigine_Heaven-4.0/bin/../data/heaven_4.0.cfg"...
Loading "libGPUMonitor_x64.so"...
Loading "libGL.so.1&
I_ERR_IRQ_INDEX,
VFIO_PCI_REQ_IRQ_INDEX,
+ VFIO_PCI_RESUME_IRQ_INDEX,
VFIO_PCI_NUM_IRQS
};
--
Sincerely,
Chen Fan
there are points where the
user can interfere with the kernel or exploit the knowledge that the
device is going through a reset, the kernel can't rely on a friendly
user. Thanks,
Alex
--
Sincerely,
Chen Fan
On 04/26/2016 10:48 PM, Alex Williamson wrote:
On Tue, 26 Apr 2016 11:39:02 +0800
Chen Fan<chen.fan.f...@cn.fujitsu.com> wrote:
On 04/14/2016 09:02 AM, Chen Fan wrote:
On 04/12/2016 05:38 AM, Alex Williamson wrote:
On Tue, 5 Apr 2016 19:42:02 +0800
Cao jin<caoj.f...@cn.fujitsu.co
On 04/14/2016 09:02 AM, Chen Fan wrote:
On 04/12/2016 05:38 AM, Alex Williamson wrote:
On Tue, 5 Apr 2016 19:42:02 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
for supporting aer recovery, host and guest would run the same aer
r
On 04/12/2016 05:38 AM, Alex Williamson wrote:
On Tue, 5 Apr 2016 19:42:02 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
for supporting aer recovery, host and guest would run the same aer
recovery code, that would do the seconda
On 04/01/2016 09:40 AM, Chen Fan wrote:
On 03/31/2016 11:44 PM, Alex Williamson wrote:
On Thu, 31 Mar 2016 14:55:07 +0800
Chen Fan <chen.fan.f...@cn.fujitsu.com> wrote:
On 03/25/2016 10:22 AM, Alex Williamson wrote:
On Fri, 25 Mar 2016 09:38:09 +0800
Chen Fan <chen.fan.f...@cn.fu
On 03/31/2016 11:44 PM, Alex Williamson wrote:
On Thu, 31 Mar 2016 14:55:07 +0800
Chen Fan <chen.fan.f...@cn.fujitsu.com> wrote:
On 03/25/2016 10:22 AM, Alex Williamson wrote:
On Fri, 25 Mar 2016 09:38:09 +0800
Chen Fan <chen.fan.f...@cn.fujitsu.com> wrote:
On 03/25/2016 06
On 03/27/2016 08:19 PM, Michael S. Tsirkin wrote:
On Thu, Mar 24, 2016 at 04:54:33PM -0600, Alex Williamson wrote:
On Wed, 23 Mar 2016 18:12:02 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
PCI hotplug requires that function 0 i
On 03/25/2016 10:22 AM, Alex Williamson wrote:
On Fri, 25 Mar 2016 09:38:09 +0800
Chen Fan <chen.fan.f...@cn.fujitsu.com> wrote:
On 03/25/2016 06:54 AM, Alex Williamson wrote:
On Wed, 23 Mar 2016 18:12:06 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan
On 03/25/2016 06:54 AM, Alex Williamson wrote:
On Wed, 23 Mar 2016 18:12:06 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
when a physical device aer occurred, the device state probably
is not in D0 in a short time, if we recove
On 03/22/2016 05:40 AM, Alex Williamson wrote:
On Mon, 21 Mar 2016 18:08:44 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Due to all devices assigned to VM on the same way as host if enable
aer, so we can easily do the hot reset
On 03/22/2016 05:40 AM, Alex Williamson wrote:
On Mon, 21 Mar 2016 18:08:44 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Due to all devices assigned to VM on the same way as host if enable
aer, so we can easily do the hot reset
On 03/22/2016 05:40 AM, Alex Williamson wrote:
On Mon, 21 Mar 2016 18:08:44 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Due to all devices assigned to VM on the same way as host if enable
aer, so we can easily do the hot reset
On 03/22/2016 05:40 AM, Alex Williamson wrote:
On Mon, 21 Mar 2016 18:08:42 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
when boot up a VM that assigning vfio devices with aer enabled, we
must check the vfio device whether supp
On 03/16/2016 04:38 AM, Alex Williamson wrote:
On Tue, 15 Mar 2016 09:35:47 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Signed-off-by: Chen Fan <chen.fan.f...@cn.fujitsu.com>
---
hw/pci/pci.c | 2
On 03/10/2016 12:37 AM, Alex Williamson wrote:
On Mon, 7 Mar 2016 11:23:02 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Signed-off-by: Chen Fan <chen.fan.f...@cn.fujitsu.com>
---
On 03/10/2016 01:14 AM, Michael S. Tsirkin wrote:
On Wed, Mar 09, 2016 at 09:50:31AM -0700, Alex Williamson wrote:
On Wed, 9 Mar 2016 18:22:24 +0200
"Michael S. Tsirkin" <m...@redhat.com> wrote:
On Mon, Mar 07, 2016 at 11:22:59AM +0800, Cao jin wrote:
From: Chen
On 03/09/2016 06:55 AM, Alex Williamson wrote:
On Mon, 7 Mar 2016 11:22:58 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
when boot up a VM that assigning vfio devices with aer enabled, we
must check the vfio device whether supp
On 03/09/2016 06:55 AM, Alex Williamson wrote:
On Mon, 7 Mar 2016 11:22:57 +0800
Cao jin <caoj.f...@cn.fujitsu.com> wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Calling pcie_aer_init to initilize aer related registers for
vfio device, then reload physical related registe
On 01/17/2016 02:34 AM, Michael S. Tsirkin wrote:
On Tue, Jan 12, 2016 at 10:43:01AM +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
For now, for vfio pci passthough devices when qemu receives
an error from host aer report, currentlly just terminate the guest,
but u
On 02/03/2016 09:57 PM, Michael S. Tsirkin wrote:
On Wed, Feb 03, 2016 at 04:54:01PM +0800, Chen Fan wrote:
On 01/17/2016 02:34 AM, Michael S. Tsirkin wrote:
On Tue, Jan 12, 2016 at 10:43:01AM +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
For now, for vf
On 01/17/2016 02:34 AM, Michael S. Tsirkin wrote:
On Tue, Jan 12, 2016 at 10:43:01AM +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
For now, for vfio pci passthough devices when qemu receives
an error from host aer report, currentlly just terminate the guest,
but u
On 01/18/2016 06:45 PM, Marcel Apfelbaum wrote:
On 01/12/2016 04:43 AM, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
when the vfio device encounters an uncorrectable error in host,
the vfio_pci driver will signal the eventfd registered by this
vfio device, the r
On 01/15/2016 04:36 AM, Alex Williamson wrote:
On Tue, 2016-01-12 at 10:43 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
avoid repeat bus reset, here introduce a sequence ID for each time
bus hot reset, so each vfio device could know whether they've already
been
On 01/17/2016 09:22 PM, Marcel Apfelbaum wrote:
On 01/12/2016 04:43 AM, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Hi,
I noticed a type in the subject, extanded -> extended
For vfio pcie device, we could expose the extended capability on
PCIE bus. in order
On 01/18/2016 05:12 PM, Marcel Apfelbaum wrote:
On 01/12/2016 04:43 AM, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Calling pcie_aer_init to initilize aer related registers for
vfio device, then reload physical related registers to expose
device capability.
Sign
On 01/18/2016 06:32 PM, Marcel Apfelbaum wrote:
On 01/12/2016 04:43 AM, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Hi,
I think the subject should be rephrased.
when init vfio devices done, we should test all the devices supported
aer whether conflict with
On 01/07/2016 12:44 AM, Alex Williamson wrote:
On Wed, 2016-01-06 at 10:13 +0800, Chen Fan wrote:
On 01/06/2016 03:58 AM, Alex Williamson wrote:
On Tue, 2016-01-05 at 09:20 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
mark the host bus be in reset. avoid mu
On 01/06/2016 03:58 AM, Alex Williamson wrote:
On Tue, 2016-01-05 at 09:20 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
mark the host bus be in reset. avoid multiple devices trigger the
host bus reset many times.
Signed-off-by: Chen Fan <chen.fan.f...@cn.fu
On 12/24/2015 10:34 PM, Michael S. Tsirkin wrote:
On Thu, Dec 24, 2015 at 01:10:25PM +0800, Chen Fan wrote:
On 12/22/2015 05:07 AM, Alex Williamson wrote:
On Fri, 2015-12-18 at 11:29 +0800, Chen Fan wrote:
On 12/18/2015 04:31 AM, Alex Williamson wrote:
On Thu, 2015-12-17 at 09:41 +0800, Cao
Hi mst,
thanks for your suggestion. I have replied it in another alex's email.
so we could discuss it in there.;)
Thanks,
Chen
On 12/23/2015 08:00 PM, Michael S. Tsirkin wrote:
On Thu, Dec 17, 2015 at 09:41:51AM +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.
On 12/22/2015 05:07 AM, Alex Williamson wrote:
On Fri, 2015-12-18 at 11:29 +0800, Chen Fan wrote:
On 12/18/2015 04:31 AM, Alex Williamson wrote:
On Thu, 2015-12-17 at 09:41 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Particularly, For vfio devices, Onc
On 12/22/2015 05:07 AM, Alex Williamson wrote:
On Fri, 2015-12-18 at 11:29 +0800, Chen Fan wrote:
On 12/18/2015 04:31 AM, Alex Williamson wrote:
On Thu, 2015-12-17 at 09:41 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Particularly, For vfio devices, Onc
On 12/18/2015 04:31 AM, Alex Williamson wrote:
On Thu, 2015-12-17 at 09:41 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
Particularly, For vfio devices, Once need to recovery devices
by bus reset such as AER, we always need to reset the host bus
to recovery the d
On 12/18/2015 04:32 AM, Alex Williamson wrote:
On Thu, 2015-12-17 at 09:41 +0800, Cao jin wrote:
From: Chen Fan <chen.fan.f...@cn.fujitsu.com>
when init vfio devices done, we should test all the devices supported
aer whether conflict with others. For each one, get the hot rese
with
06:00.1 received the signal.
is that right?
Thanks,
Chen
On 11/14/2015 05:04 AM, Alex Williamson wrote:
On Fri, 2015-11-13 at 11:28 +0800, Cao jin wrote:
On 11/12/2015 07:51 PM, Michael S. Tsirkin wrote:
On Wed, Nov 11, 2015 at 06:34:27PM +0800, Cao jin wrote:
From: Chen Fan <chen.fa
On 11/17/2015 12:05 AM, Alex Williamson wrote:
On Mon, 2015-11-16 at 18:18 +0800, Chen Fan wrote:
Hi Alex,
Thanks for your detailed explanation.
during my test, I found that maybe there was another problem in vfio
driver,
I use a dual-port NIC which address are: 06:00.0 and 06:00.1
ping
On 06/24/2015 05:45 PM, Chen Fan wrote:
For now, for vfio pci passthough devices when qemu receives
an error from host aer report, there just terminate the guest,
but usually user want to know what error occurred but stop the
guest, so this patches add aer capability support for vfio
For vfio pcie device, we could expose the extended capability on
PCIE bus. in order to avoid config space broken, we introduce
a copy config for parsing extended caps. and rebuild the pcie
extended config space.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 72
the function is used to get affected devices by bus reset.
so here extract it, and can used for aer soon.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 66 +++
1 file changed, 48 insertions(+), 18 deletions
this function search the capability from the end, the last
size should 0x100 - pos, not 0xff - pos.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index e056c49..52e8ad4
.
Chen Fan (15):
vfio: extract vfio_get_hot_reset_info as a single function
vfio: squeeze out vfio_pci_do_hot_reset for support bus reset
pcie: modify the capability size assert
vfio: make the 4 bytes aligned for capability size
vfio: add pcie extanded capability support
aer: impove
add 'aer' property to let user able to decide whether expose
the aer capability. by default we should disable aer feature,
because it needs configuration restrictions.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw
the vfio_pci_hot_reset differentiate the single and multi in-used
devices for reset. but in multi case, when some dependent devices
are not assigned to VM, the devices can not be recovered by driver.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 13 +
1
when do virtual secondary bus reset, the vfio device under
this bus need to do host bus reset to reset the device.
so add this case.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 31 +++
1 file changed, 31 insertions(+)
diff --git a/hw/vfio
Calling pcie_aer_init to initilize aer related registers for
vfio device, then reload physical related registers to expose
device capability.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 89 +--
1 file changed
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 83 +++
1 file changed, 83 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index c2af8f1..7cc81ae 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -156,6
-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 45 +++--
1 file changed, 39 insertions(+), 6 deletions(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 9181c15..adc15f8 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -3605,18 +3605,51
vfio-pci devices on or below the target
bus to verify they have a reset mechanism.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 213 --
1 file changed, 206 insertions(+), 7 deletions(-)
diff --git a/hw/vfio/pci.c
For vfio device, we need to propagate the aer error to
Guest OS. we use the pcie_aer_msg() to send aer error
to guest.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
Reviewed-by: Marcel Apfelbaum mar...@redhat.com
---
hw/pci/pcie_aer.c | 2 +-
include/hw/pci/pcie_aer.h | 1 +
2
pcie_aer_init was used to emulate an aer capability for pcie device,
but for vfio device, the aer config space size is mutable and is not
always equal to PCI_ERR_SIZEOF(0x48). it depends on where the TLP Prefix
register required, so here we add a size argument.
Signed-off-by: Chen Fan chen.fan.f
Particularly, For vfio devices, Once need to recovery devices
by bus reset such as AER, we always need to reset the host bus
to recovery the devices under the bus, so we need to add pci bus
callbacks to specify to do host bus reset.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci
Device's Offset and size can reach PCIE_CONFIG_SPACE_SIZE,
fix the corresponding assert.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
Reviewed-by: Marcel Apfelbaum mar...@redhat.com
---
hw/pci/pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci/pcie.c b/hw
squeeze out vfio_pci_do_hot_reset to do host bus reset when AER recovery.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 75 +++
1 file changed, 44 insertions(+), 31 deletions(-)
diff --git a/hw/vfio/pci.c b/hw
On 06/17/2015 11:23 PM, Alex Williamson wrote:
On Wed, 2015-06-17 at 14:28 +0800, Chen Fan wrote:
On 06/16/2015 10:08 PM, Alex Williamson wrote:
On Tue, 2015-06-16 at 16:10 +0800, Chen Fan wrote:
On 06/10/2015 05:24 AM, Alex Williamson wrote:
On Tue, 2015-06-09 at 11:37 +0800, Chen Fan
On 06/16/2015 10:08 PM, Alex Williamson wrote:
On Tue, 2015-06-16 at 16:10 +0800, Chen Fan wrote:
On 06/10/2015 05:24 AM, Alex Williamson wrote:
On Tue, 2015-06-09 at 11:37 +0800, Chen Fan wrote:
the vfio_pci_hot_reset differentiate the single and multi in-used
devices for reset
On 06/16/2015 06:20 PM, Michael S. Tsirkin wrote:
On Tue, Jun 16, 2015 at 04:10:57PM +0800, Chen Fan wrote:
Particularly, For vfio devices, Once need to recovery devices
by bus reset such as AER, we always need to reset the host bus
to recovery the devices under the bus, so we need to add pci
For vfio pcie device, we could expose the extended capability on
PCIE bus. in order to avoid config space broken, we introduce
a copy config for parsing extended caps. and rebuild the pcie
extended config space.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 72
when do virtual secondary bus reset, the vfio device under
this bus need to do host bus reset to reset the device.
so add this case.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
Calling pcie_aer_init to initilize aer related registers for
vfio device, then reload physical related registers to expose
device capability.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 89 +--
1 file changed
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/common.c | 9 -
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index df3171d..15f19a2 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -808,11 +808,18 @@ VFIOGroup
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/common.c | 14 +-
include/hw/vfio/vfio-common.h | 1 +
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index b1045da..67881f7 100644
--- a/hw/vfio/common.c
pcie_aer_init was used to emulate an aer capability for pcie device,
but for vfio device, the aer config space size is mutable and is not
always equal to PCI_ERR_SIZEOF(0x48). it depends on where the TLP Prefix
register required, so here we add a size argument.
Signed-off-by: Chen Fan chen.fan.f
Particularly, For vfio devices, Once need to recovery devices
by bus reset such as AER, we always need to reset the host bus
to recovery the devices under the bus, so we need to add pci bus
callbacks to specify to do host bus reset.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci
all of the non-AER supporting
vfio-pci devices on or below the target bus to verify they have a reset
mechanism.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 170 ++
1 file changed, 170 insertions(+)
diff --git
add 'aer' property to let user able to decide whether expose
the aer capability. by default we should disable aer feature,
because it needs configuration restrictions.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw
the vfio_pci_hot_reset differentiate the single and multi in-used
devices for reset. but sometimes we own the group without any devices,
that also should support hot reset.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 11 +++
1 file changed, 11 insertions
squeeze out vfio_pci_do_hot_reset to do host bus reset when AER recovery.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 75 +++
1 file changed, 44 insertions(+), 31 deletions(-)
diff --git a/hw/vfio/pci.c b/hw
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/common.c | 60
1 file changed, 39 insertions(+), 21 deletions(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 67881f7..df3171d 100644
--- a/hw/vfio/common.c
+++ b
-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 45 +++--
1 file changed, 39 insertions(+), 6 deletions(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 5bdfa73..3b76329 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -3699,18 +3699,51
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 81 +++
1 file changed, 81 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 53fb544..fad6a80 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -156,6
Add the affected groups without any devices into VM,
it can keep the VM ownship the all groups. and use a
reference to make the group visible.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 123 ++
1 file changed
.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci/pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index 1463e65..6cdd4a1 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -595,7 +595,7 @@ void pcie_add_capability(PCIDevice *dev
the function is used to get affected devices by bus reset.
so here extract it, and can used for aer soon.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 66 +++
1 file changed, 48 insertions(+), 18 deletions
On 06/10/2015 05:24 AM, Alex Williamson wrote:
On Tue, 2015-06-09 at 11:37 +0800, Chen Fan wrote:
the vfio_pci_hot_reset differentiate the single and multi in-used
devices for reset. but sometimes we own the group without any devices,
that also should support hot reset.
Nope, did you try
without devices in VM.
2. add check for all aer devices if conflict the topology at each
initfn time.
Chen Fan (19):
vfio: extract vfio_get_hot_reset_info as a single function
vfio: squeeze out vfio_pci_do_hot_reset for support bus reset
pcie: modify the capability size assert
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index e056c49..52e8ad4 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2481,7 +2481,8 @@ static void vfio_unmap_bars
For vfio device, we need to propagate the aer error to
Guest OS. we use the pcie_aer_msg() to send aer error
to guest.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci/pcie_aer.c | 2 +-
include/hw/pci/pcie_aer.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff
Add the affected groups without any devices into VM,
it can keep the VM ownship the all groups. and use a
reference to make the group visible.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 115 ++
1 file changed
Calling pcie_aer_init to initilize aer related registers for
vfio device, then reload physical related registers to expose
device capability.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 86 ++-
1 file changed
pcie_aer_init was used to emulate an aer capability for pcie device,
but for vfio device, the aer config space size is mutable and is not
always equal to PCI_ERR_SIZEOF(0x48). it depends on where the TLP Prefix
register required, so here we add a size argument.
Signed-off-by: Chen Fan chen.fan.f
For vfio pcie device, we could expose the extended capability on
PCIE bus. in order to avoid config space broken, we introduce
a copy config for parsing extended caps. and rebuild the pcie
extended config space.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 73
squeeze out vfio_pci_do_hot_reset to do host bus reset when AER recovery.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 75 +++
1 file changed, 44 insertions(+), 31 deletions(-)
diff --git a/hw/vfio/pci.c b/hw
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index e056c49..52e8ad4 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -2481,7 +2481,8 @@ static void vfio_unmap_bars
.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci/pcie.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/pci/pcie.c b/hw/pci/pcie.c
index 1463e65..6cdd4a1 100644
--- a/hw/pci/pcie.c
+++ b/hw/pci/pcie.c
@@ -595,7 +595,7 @@ void pcie_add_capability(PCIDevice *dev
the function is used to get affected devices by bus reset.
so here extract it, and can used for aer soon.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 66 +++
1 file changed, 48 insertions(+), 18 deletions
when do virtual secondary bus reset, the vfio device under
this bus need to do host bus reset to reset the device.
so add this case.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
we introduce a has_bus_reset capability to sign the vfio
devices if support host bus reset.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 169 ++
1 file changed, 169 insertions(+)
diff --git a/hw/vfio/pci.c b/hw
add 'aer' property to let user able to decide whether expose
the aer capability. by default we should disable aer feature,
because it needs configuration restrictions.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 81 +++
1 file changed, 81 insertions(+)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 97af143..a4e8658 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -156,6
On 06/04/2015 11:59 PM, Alex Williamson wrote:
On Wed, 2015-06-03 at 08:52 +0800, Chen Fan wrote:
On 06/03/2015 12:47 AM, Alex Williamson wrote:
On Tue, 2015-06-02 at 15:54 +0800, Chen Fan wrote:
On 05/28/2015 05:32 AM, Alex Williamson wrote:
On Wed, 2015-05-27 at 10:46 +0800, Chen Fan
the topology at each
initfn time.
Chen Fan (18):
vfio: extract vfio_get_hot_reset_info as a single function
vfio: squeeze out vfio_pci_do_hot_reset for support bus reset
pcie: modify the capability size assert
vfio: make the 4 bytes aligned for capability size
vfio: add pcie extanded
the vfio_pci_hot_reset differentiate the single and multi in-used
devices for reset. but sometimes we own the group without any devices,
that also should support hot reset.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 11 +++
1 file changed, 11 insertions
Particularly, For vfio devices, Once need to recovery devices
by bus reset such as AER, we always need to reset the host bus
to recovery the devices under the bus, so we need to add pci bus
callbacks to specify to do host bus reset.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/common.c | 12
include/hw/vfio/vfio-common.h | 1 +
2 files changed, 13 insertions(+)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 4230f83..eff1930 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio
Pre-adding all affected groups for aer devices, it could
ensure the affected groups are owned in VM.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/common.c | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
For vfio device, we need to propagate the aer error to
Guest OS. we use the pcie_aer_msg() to send aer error
to guest.
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/pci/pcie_aer.c | 2 +-
include/hw/pci/pcie_aer.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff
-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
hw/vfio/pci.c | 45 +++--
1 file changed, 39 insertions(+), 6 deletions(-)
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
index 655ac59..b2e7601 100644
--- a/hw/vfio/pci.c
+++ b/hw/vfio/pci.c
@@ -3690,18 +3690,51
1 - 100 of 417 matches
Mail list logo