search for: vdpasim_blk_init

Displaying 2 results from an estimated 2 matches for "vdpasim_blk_init".

2023 Aug 21
0
[PATCH] vdpa_sim_blk: Fix the potential leak of mgmt_dev
...2 deletions(-) > > diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c > index 00d7d72713be..b3a3cb165795 100644 > --- a/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c > +++ b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c > @@ -499,12 +499,13 @@ static int __init vdpasim_blk_init(void) > GFP_KERNEL); > if (!shared_buffer) { > ret = -ENOMEM; > - goto parent_err; > + goto mgmt_dev_err; > } > } > >...
2023 Apr 07
2
[PATCH 0/2] vdpa_sim_blk: support shared backend
This series is mainly for testing live migration between 2 vdpa_sim_blk devices. The first patch is preparation and moves the buffer allocation into devices, the second patch adds the `shared_buffer_mutex` parameter to vdpa_sim_blk to use the same ramdisk for all devices. Tested with QEMU v8.0.0-rc2 in this way: modprobe vhost_vdpa modprobe vdpa_sim_blk shared_backend=true vdpa dev add mgmtdev