[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qemu-s390x] [PATCH] s390x/vfio-ap: Implement hot plug/unplug of vfi

From: Tony Krowiak
Subject: Re: [qemu-s390x] [PATCH] s390x/vfio-ap: Implement hot plug/unplug of vfio-ap device
Date: Tue, 8 Jan 2019 11:14:26 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 1/8/19 11:01 AM, Tony Krowiak wrote:
Introduces hot plug/unplug support for the vfio-ap device. Note that only one
vfio-ap device can be attached to the ap-bus, so a vfio-ap device can only be
hot plugged if the '-device vfio-ap,sysfsdev=$path_to_mdev' option is not
specified on the QEMU command line.

Signed-off-by: Tony Krowiak <address@hidden>
Reviewed-by: Pierre Morel<address@hidden>
Tested-by: Pierre Morel<address@hidden>
  hw/s390x/ap-bridge.c | 12 +++++++++++-
  hw/vfio/ap.c         |  2 +-
  2 files changed, 12 insertions(+), 2 deletions(-)

Please note: During testing of this patch I discovered a bug whereby an
attempt to plug in a vfio-ap device subsequent to an unplug of the
device will result in the following error:

error: Failed to attach device from /root/conf/vfio-ap.xml
error: internal error: unable to execute QEMU command 'device_add': No 'ap-bus' bus found for device 'vfio-ap'

I wrote a patch for this bug:
Message ID: <address@hidden>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]