From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1BA40C433F5 for ; Mon, 18 Apr 2022 14:04:52 +0000 (UTC) Received: from localhost ([::1]:41652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ngRzn-0005Qh-7y for qemu-devel@archiver.kernel.org; Mon, 18 Apr 2022 10:04:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39134) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngRz2-0004mD-Vc for qemu-devel@nongnu.org; Mon, 18 Apr 2022 10:04:04 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:46003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ngRyz-0001C9-I4 for qemu-devel@nongnu.org; Mon, 18 Apr 2022 10:04:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650290639; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B7XQ9iR0R35hwcsg8ItiwTk1fLI5NAQuf6WbR1xwA8g=; b=hPKHAtEvvychus+OR4gPAR8ZWtOufXxaV1c17i2Jq7PqcM0WrTc9VfKj9B2qkOT4XFPWYV DL78Om+a7Y7dr41k0RQFZBQls1CC2QiKdw+VMAVhB4uiFnfFLELnNif00Ql2+/TZZVuPO1 /7eHHOIpO8eIPsQs6shkf+QVphx2Dxw= Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-322-9-xM62A9Mkybl1lFJUD06A-1; Mon, 18 Apr 2022 10:03:55 -0400 X-MC-Unique: 9-xM62A9Mkybl1lFJUD06A-1 Received: by mail-qk1-f197.google.com with SMTP id y13-20020a05620a44cd00b0069c35f1ea3eso10469927qkp.0 for ; Mon, 18 Apr 2022 07:03:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=B7XQ9iR0R35hwcsg8ItiwTk1fLI5NAQuf6WbR1xwA8g=; b=D4iJkx78tRrJNuhsKKwiex7cTcI0hGpeSxoRgCS5xIN8HNWllj4rZGrWFVAXb+1dZE xikI2+42EvBvVGQutDcSYZMcDj1E2eQWhNIgTuQCIP5M5zqbgadLxH1K1LfOH9cx2kjK CVa9dAfxZHoIVGBez/9AASifcmuOXvTdV0zQ35zr5KL9ZkloEXsgvXLhieGb9/0YVk7h Nse32cF5eWbAlWRQY469qTEpDXNITHRfaE/UZTyuLox4otvXZV40dURhEZhBUaYEtBPy aySNBjNezbRFxPB/7nX0gfU5dnXv9iaN9pYqS7gbzPzKTxT6CoFeg2rdeK5K4XKHVTBu lToA== X-Gm-Message-State: AOAM5313U6f/o9KMBMkcA8HBkitO/etx2HD2zDAu0SaEczMxzNUkYAky vd1IkJ9CxXwrQFWNgUVQ3lhkwOf3yJdQoc4+Gm0pH+69NpvLSFpJy7ex65IEaGwtSol3EjAWdR5 43HRus+XSURTM33hfGF0kiDzPc9sgDtM= X-Received: by 2002:ae9:ed90:0:b0:69c:90ff:ff0 with SMTP id c138-20020ae9ed90000000b0069c90ff0ff0mr6638392qkg.406.1650290634622; Mon, 18 Apr 2022 07:03:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4bJjZF6qoGWsjad1/sHJGGKXAYZEn64ViX2zJYs68izV0lh8ORdhkR4Duzd6XWDUcCVQhc3vuB9Jx5PBpFdw= X-Received: by 2002:ae9:ed90:0:b0:69c:90ff:ff0 with SMTP id c138-20020ae9ed90000000b0069c90ff0ff0mr6638364qkg.406.1650290634222; Mon, 18 Apr 2022 07:03:54 -0700 (PDT) MIME-Version: 1.0 References: <20220413163206.1958254-1-eperezma@redhat.com> <20220413163206.1958254-25-eperezma@redhat.com> In-Reply-To: From: Eugenio Perez Martin Date: Mon, 18 Apr 2022 16:03:18 +0200 Message-ID: Subject: Re: [RFC PATCH v7 24/25] vdpa: Add asid attribute to vdpa device To: Jason Wang Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=eperezma@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.133.124; envelope-from=eperezma@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Parav Pandit , Cindy Lu , "Michael S. Tsirkin" , qemu-devel , Gautam Dawar , Harpreet Singh Anand , "Gonglei \(Arei\)" , Eli Cohen , Liuxiangdong , Zhu Lingshan Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Thu, Apr 14, 2022 at 11:10 AM Jason Wang wrote: > > On Thu, Apr 14, 2022 at 12:33 AM Eugenio P=C3=A9rez = wrote: > > > > We can configure ASID per group, but we still use asid 0 for every vdpa > > device. Multiple asid support for cvq will be introduced in next > > patches > > > > Signed-off-by: Eugenio P=C3=A9rez > > --- > > include/hw/virtio/vhost.h | 4 ++ > > hw/net/vhost_net.c | 5 +++ > > hw/virtio/vhost-vdpa.c | 95 ++++++++++++++++++++++++++++++++------- > > net/vhost-vdpa.c | 4 +- > > hw/virtio/trace-events | 9 ++-- > > 5 files changed, 94 insertions(+), 23 deletions(-) > > > > diff --git a/include/hw/virtio/vhost.h b/include/hw/virtio/vhost.h > > index 034868fa9e..640cf82168 100644 > > --- a/include/hw/virtio/vhost.h > > +++ b/include/hw/virtio/vhost.h > > @@ -76,8 +76,12 @@ struct vhost_dev { > > int vq_index; > > /* one past the last vq index for the virtio device (not vhost) */ > > int vq_index_end; > > + /* one past the last vq index of this virtqueue group */ > > + int vq_group_index_end; > > /* if non-zero, minimum required value for max_queues */ > > int num_queues; > > + /* address space id */ > > Instead of doing shortcuts like this, I think we need to have > abstraction as what kernel did. That is to say, introduce structures > like: > > struct vhost_vdpa_dev_group; > struct vhost_vdpa_as; > > Then having pointers to those structures like > > struct vhost_vdpa { > ... > struct vhost_vdpa_dev_group *group; > }; > > struct vhost_vdpa_group { > ... > uint32_t id; > struct vhost_vdpa_as; > }; > > struct vhost_vdpa_as { > uint32_t id; > MemoryListener listener; > }; > > We can read the group topology during initialization and allocate the > structure accordingly. If the CVQ has its own group: > > 1) We know we will have 2 AS otherwise 1 AS > 2) allocate #AS and attach the group to the corresponding AS > > Then we know the > > 1) map/unmap and listener is done per as instead of per group or vdpa. > 2) AS attach/detach is done per group > > And it would simplify the future extension when we want to advertise > the as/groups to guests. > > To simplify the reviewing, we can introduce the above concept before > the ASID uAPIs and assume a 1 group 1 as a model as a start. > I think it's doable, let me refactor the code that way and I'll come back with the results. Thanks! > Thanks > > > + uint32_t address_space_id; > > /* Must be a vq group different than any other vhost dev */ > > bool independent_vq_group; > > uint64_t features; > > diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c > > index 10480e19e5..a34df739a7 100644 > > --- a/hw/net/vhost_net.c > > +++ b/hw/net/vhost_net.c > > @@ -344,15 +344,20 @@ int vhost_net_start(VirtIODevice *dev, NetClientS= tate *ncs, > > > > for (i =3D 0; i < nvhosts; i++) { > > bool cvq_idx =3D i >=3D data_queue_pairs; > > + uint32_t vq_group_end; > > > > if (!cvq_idx) { > > peer =3D qemu_get_peer(ncs, i); > > + vq_group_end =3D 2 * data_queue_pairs; > > } else { /* Control Virtqueue */ > > peer =3D qemu_get_peer(ncs, n->max_queue_pairs); > > + vq_group_end =3D 2 * data_queue_pairs + 1; > > } > > > > net =3D get_vhost_net(peer); > > + net->dev.address_space_id =3D !!cvq_idx; > > net->dev.independent_vq_group =3D !!cvq_idx; > > + net->dev.vq_group_index_end =3D vq_group_end; > > vhost_net_set_vq_index(net, i * 2, index_end); > > > > /* Suppress the masking guest notifiers on vhost user > > diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c > > index 4096555242..5ed211287c 100644 > > --- a/hw/virtio/vhost-vdpa.c > > +++ b/hw/virtio/vhost-vdpa.c > > @@ -79,6 +79,9 @@ static int vhost_vdpa_dma_map(struct vhost_vdpa *v, h= waddr iova, hwaddr size, > > int ret =3D 0; > > > > msg.type =3D v->msg_type; > > + if (v->dev->backend_cap & BIT_ULL(VHOST_BACKEND_F_IOTLB_ASID)) { > > + msg.asid =3D v->dev->address_space_id; > > + } > > msg.iotlb.iova =3D iova; > > msg.iotlb.size =3D size; > > msg.iotlb.uaddr =3D (uint64_t)(uintptr_t)vaddr; > > @@ -90,8 +93,9 @@ static int vhost_vdpa_dma_map(struct vhost_vdpa *v, h= waddr iova, hwaddr size, > > return 0; > > } > > > > - trace_vhost_vdpa_dma_map(v, fd, msg.type, msg.iotlb.iova, msg.iotlb= .size, > > - msg.iotlb.uaddr, msg.iotlb.perm, msg.iotlb= .type); > > + trace_vhost_vdpa_dma_map(v, fd, msg.type, msg.asid, msg.iotlb.iova= , > > + msg.iotlb.size, msg.iotlb.uaddr, msg.iotl= b.perm, > > + msg.iotlb.type); > > > > if (write(fd, &msg, sizeof(msg)) !=3D sizeof(msg)) { > > error_report("failed to write, fd=3D%d, errno=3D%d (%s)", > > @@ -109,6 +113,9 @@ static int vhost_vdpa_dma_unmap(struct vhost_vdpa *= v, hwaddr iova, > > int fd =3D v->device_fd; > > int ret =3D 0; > > > > + if (v->dev->backend_cap & BIT_ULL(VHOST_BACKEND_F_IOTLB_ASID)) { > > + msg.asid =3D v->dev->address_space_id; > > + } > > msg.type =3D v->msg_type; > > msg.iotlb.iova =3D iova; > > msg.iotlb.size =3D size; > > @@ -119,7 +126,7 @@ static int vhost_vdpa_dma_unmap(struct vhost_vdpa *= v, hwaddr iova, > > return 0; > > } > > > > - trace_vhost_vdpa_dma_unmap(v, fd, msg.type, msg.iotlb.iova, > > + trace_vhost_vdpa_dma_unmap(v, fd, msg.type, msg.asid, msg.iotlb.io= va, > > msg.iotlb.size, msg.iotlb.type); > > > > if (write(fd, &msg, sizeof(msg)) !=3D sizeof(msg)) { > > @@ -134,6 +141,7 @@ static int vhost_vdpa_dma_unmap(struct vhost_vdpa *= v, hwaddr iova, > > static void vhost_vdpa_listener_commit(MemoryListener *listener) > > { > > struct vhost_vdpa *v =3D container_of(listener, struct vhost_vdpa,= listener); > > + struct vhost_dev *dev =3D v->dev; > > struct vhost_msg_v2 msg =3D {}; > > int fd =3D v->device_fd; > > size_t num =3D v->iotlb_updates->len; > > @@ -142,9 +150,14 @@ static void vhost_vdpa_listener_commit(MemoryListe= ner *listener) > > return; > > } > > > > + if (dev->backend_cap & (0x1ULL << VHOST_BACKEND_F_IOTLB_ASID)) { > > + msg.asid =3D v->dev->address_space_id; > > + } > > + > > msg.type =3D v->msg_type; > > msg.iotlb.type =3D VHOST_IOTLB_BATCH_BEGIN; > > - trace_vhost_vdpa_listener_begin_batch(v, fd, msg.type, msg.iotlb.t= ype); > > + trace_vhost_vdpa_listener_begin_batch(v, fd, msg.type, msg.asid, > > + msg.iotlb.type); > > if (write(fd, &msg, sizeof(msg)) !=3D sizeof(msg)) { > > error_report("failed to write BEGIN_BATCH, fd=3D%d, errno=3D%d= (%s)", > > fd, errno, strerror(errno)); > > @@ -162,7 +175,8 @@ static void vhost_vdpa_listener_commit(MemoryListen= er *listener) > > } > > > > msg.iotlb.type =3D VHOST_IOTLB_BATCH_END; > > - trace_vhost_vdpa_listener_commit(v, fd, msg.type, msg.iotlb.type); > > + trace_vhost_vdpa_listener_commit(v, fd, msg.type, msg.asid, > > + msg.iotlb.type); > > if (write(fd, &msg, sizeof(msg)) !=3D sizeof(msg)) { > > error_report("failed to write, fd=3D%d, errno=3D%d (%s)", > > fd, errno, strerror(errno)); > > @@ -1171,10 +1185,48 @@ call_err: > > return false; > > } > > > > +static int vhost_vdpa_set_vq_group_address_space_id(struct vhost_dev *= dev, > > + struct vhost_vring_sta= te *asid) > > +{ > > + trace_vhost_vdpa_set_vq_group_address_space_id(dev, asid->index, a= sid->num); > > + return vhost_vdpa_call(dev, VHOST_VDPA_SET_GROUP_ASID, asid); > > +} > > + > > +static int vhost_vdpa_set_address_space_id(struct vhost_dev *dev) > > +{ > > + struct vhost_vring_state vq_group =3D { > > + .index =3D dev->vq_index, > > + }; > > + struct vhost_vring_state asid; > > + int ret; > > + > > + if (!dev->address_space_id) { > > + return 0; > > + } > > + > > + ret =3D vhost_vdpa_get_vring_group(dev, &vq_group); > > + if (unlikely(ret)) { > > + error_report("Can't read vq group, errno=3D%d (%s)", ret, > > + g_strerror(-ret)); > > + return ret; > > + } > > + > > + asid.index =3D vq_group.num; > > + asid.num =3D dev->address_space_id; > > + ret =3D vhost_vdpa_set_vq_group_address_space_id(dev, &asid); > > + if (unlikely(ret)) { > > + error_report("Can't set vq group %u asid %u, errno=3D%d (%s)", > > + asid.index, asid.num, ret, g_strerror(-ret)); > > + } > > + return ret; > > +} > > + > > static int vhost_vdpa_dev_start(struct vhost_dev *dev, bool started) > > { > > struct vhost_vdpa *v =3D dev->opaque; > > - bool ok; > > + bool vq_group_end, ok; > > + int r =3D 0; > > + > > trace_vhost_vdpa_dev_start(dev, started); > > > > if (started) { > > @@ -1183,6 +1235,10 @@ static int vhost_vdpa_dev_start(struct vhost_dev= *dev, bool started) > > !vhost_dev_is_independent_group(dev)) { > > return -1; > > } > > + r =3D vhost_vdpa_set_address_space_id(dev); > > + if (unlikely(r)) { > > + return r; > > + } > > ok =3D vhost_vdpa_svqs_start(dev); > > if (unlikely(!ok)) { > > return -1; > > @@ -1196,21 +1252,26 @@ static int vhost_vdpa_dev_start(struct vhost_de= v *dev, bool started) > > vhost_vdpa_host_notifiers_uninit(dev, dev->nvqs); > > } > > > > - if (dev->vq_index + dev->nvqs !=3D dev->vq_index_end) { > > - return 0; > > + vq_group_end =3D dev->vq_index + dev->nvqs =3D=3D dev->vq_group_in= dex_end; > > + if (vq_group_end && started) { > > + memory_listener_register(&v->listener, &address_space_memory); > > } > > > > - if (started) { > > - memory_listener_register(&v->listener, &address_space_memory); > > - return vhost_vdpa_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK); > > - } else { > > - vhost_vdpa_reset_device(dev); > > - vhost_vdpa_add_status(dev, VIRTIO_CONFIG_S_ACKNOWLEDGE | > > - VIRTIO_CONFIG_S_DRIVER); > > - memory_listener_unregister(&v->listener); > > + if (dev->vq_index + dev->nvqs =3D=3D dev->vq_index_end) { > > + if (started) { > > + r =3D vhost_vdpa_add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK= ); > > + } else { > > + vhost_vdpa_reset_device(dev); > > + vhost_vdpa_add_status(dev, VIRTIO_CONFIG_S_ACKNOWLEDGE | > > + VIRTIO_CONFIG_S_DRIVER); > > + } > > + } > > > > - return 0; > > + if (vq_group_end && !started) { > > + memory_listener_unregister(&v->listener); > > } > > + > > + return r; > > } > > > > static int vhost_vdpa_set_log_base(struct vhost_dev *dev, uint64_t bas= e, > > diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c > > index 15c3e4f703..a6f803ea4e 100644 > > --- a/net/vhost-vdpa.c > > +++ b/net/vhost-vdpa.c > > @@ -473,8 +473,8 @@ int net_init_vhost_vdpa(const Netdev *netdev, const= char *name, > > > > if (has_cvq) { > > nc =3D net_vhost_vdpa_init(peer, TYPE_VHOST_VDPA, name, > > - vdpa_device_fd, i, 1, false, opts->x_= svq, > > - iova_tree); > > + vdpa_device_fd, i, 1, > > + false, opts->x_svq, iova_tree); > > if (!nc) > > goto err; > > } > > diff --git a/hw/virtio/trace-events b/hw/virtio/trace-events > > index e6fdc03514..2858deac60 100644 > > --- a/hw/virtio/trace-events > > +++ b/hw/virtio/trace-events > > @@ -23,10 +23,10 @@ vhost_user_postcopy_waker_found(uint64_t client_add= r) "0x%"PRIx64 > > vhost_user_postcopy_waker_nomatch(const char *rb, uint64_t rb_offset) = "%s + 0x%"PRIx64 > > > > # vhost-vdpa.c > > -vhost_vdpa_dma_map(void *vdpa, int fd, uint32_t msg_type, uint64_t iov= a, uint64_t size, uint64_t uaddr, uint8_t perm, uint8_t type) "vdpa:%p fd: = %d msg_type: %"PRIu32" iova: 0x%"PRIx64" size: 0x%"PRIx64" uaddr: 0x%"PRIx6= 4" perm: 0x%"PRIx8" type: %"PRIu8 > > -vhost_vdpa_dma_unmap(void *vdpa, int fd, uint32_t msg_type, uint64_t i= ova, uint64_t size, uint8_t type) "vdpa:%p fd: %d msg_type: %"PRIu32" iova:= 0x%"PRIx64" size: 0x%"PRIx64" type: %"PRIu8 > > -vhost_vdpa_listener_begin_batch(void *v, int fd, uint32_t msg_type, ui= nt8_t type) "vdpa:%p fd: %d msg_type: %"PRIu32" type: %"PRIu8 > > -vhost_vdpa_listener_commit(void *v, int fd, uint32_t msg_type, uint8_t= type) "vdpa:%p fd: %d msg_type: %"PRIu32" type: %"PRIu8 > > +vhost_vdpa_dma_map(void *vdpa, int fd, uint32_t msg_type, uint32_t asi= d, uint64_t iova, uint64_t size, uint64_t uaddr, uint8_t perm, uint8_t type= ) "vdpa:%p fd: %d msg_type: %"PRIu32" asid: %"PRIu32" iova: 0x%"PRIx64" siz= e: 0x%"PRIx64" uaddr: 0x%"PRIx64" perm: 0x%"PRIx8" type: %"PRIu8 > > +vhost_vdpa_dma_unmap(void *vdpa, int fd, uint32_t msg_type, uint32_t a= sid, uint64_t iova, uint64_t size, uint8_t type) "vdpa:%p fd: %d msg_type: = %"PRIu32" asid: %"PRIu32" iova: 0x%"PRIx64" size: 0x%"PRIx64" type: %"PRIu8 > > +vhost_vdpa_listener_begin_batch(void *v, int fd, uint32_t msg_type, ui= nt32_t asid, uint8_t type) "vdpa:%p fd: %d msg_type: %"PRIu32" asid: %"PRI= u32" type: %"PRIu8 > > +vhost_vdpa_listener_commit(void *v, int fd, uint32_t msg_type, uint32_= t asid, uint8_t type) "vdpa:%p fd: %d msg_type: %"PRIu32" asid: %"PRIu32" = type: %"PRIu8 > > vhost_vdpa_listener_region_add(void *vdpa, uint64_t iova, uint64_t lle= nd, void *vaddr, bool readonly) "vdpa: %p iova 0x%"PRIx64" llend 0x%"PRIx64= " vaddr: %p read-only: %d" > > vhost_vdpa_listener_region_del(void *vdpa, uint64_t iova, uint64_t lle= nd) "vdpa: %p iova 0x%"PRIx64" llend 0x%"PRIx64 > > vhost_vdpa_add_status(void *dev, uint8_t status) "dev: %p status: 0x%"= PRIx8 > > @@ -44,6 +44,7 @@ vhost_vdpa_dump_config(void *dev, const char *line) "= dev: %p %s" > > vhost_vdpa_set_config(void *dev, uint32_t offset, uint32_t size, uint3= 2_t flags) "dev: %p offset: %"PRIu32" size: %"PRIu32" flags: 0x%"PRIx32 > > vhost_vdpa_get_config(void *dev, void *config, uint32_t config_len) "d= ev: %p config: %p config_len: %"PRIu32 > > vhost_vdpa_get_vring_group(void *dev, unsigned int index, unsigned int= num) "dev: %p index: %u num: %u" > > +vhost_vdpa_set_vq_group_address_space_id(void *dev, unsigned int index= , unsigned int num) "dev: %p index: %u num: %u" > > vhost_vdpa_dev_start(void *dev, bool started) "dev: %p started: %d" > > vhost_vdpa_set_log_base(void *dev, uint64_t base, unsigned long long s= ize, int refcnt, int fd, void *log) "dev: %p base: 0x%"PRIx64" size: %llu r= efcnt: %d fd: %d log: %p" > > vhost_vdpa_set_vring_addr(void *dev, unsigned int index, unsigned int = flags, uint64_t desc_user_addr, uint64_t used_user_addr, uint64_t avail_use= r_addr, uint64_t log_guest_addr) "dev: %p index: %u flags: 0x%x desc_user_a= ddr: 0x%"PRIx64" used_user_addr: 0x%"PRIx64" avail_user_addr: 0x%"PRIx64" l= og_guest_addr: 0x%"PRIx64 > > -- > > 2.27.0 > > >