From patchwork Wed Nov 30 11:24:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 629472 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp793187pvb; Wed, 30 Nov 2022 03:26:57 -0800 (PST) X-Google-Smtp-Source: AA0mqf5w5O9o2i99BR6THirmRKml6sjXgLOJLshxYbBg0WlQcg+SWPFN95JuGTPCNLQRBgY5FR8i X-Received: by 2002:a0c:e011:0:b0:4c6:9310:97f5 with SMTP id j17-20020a0ce011000000b004c6931097f5mr37881963qvk.61.1669807617842; Wed, 30 Nov 2022 03:26:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669807617; cv=none; d=google.com; s=arc-20160816; b=Jym7RLrzHoxtiNSLIgxuxtBB6MWN12nfY1p+GPnvu6l2FF74eCwfT4vVQZVy7SnW9n EvPqbGwvqc3bdmgltMVv+IijAm2nTFyp2/ZMI9cEfmyLaDziIJ6O2znNRUeCCkXxN2aV YxOiew1grUc+lmPs+GZWqeM4KzME7yEYjBrG2wSAHaZmQTPtL1q3lZS+jg9FmhvPeEvq b/Rk+Lj+EjL3LLD7SxyTrfyLaEmFxHoX6zKedy/Px5EH+W3wNqWTxqHy440qvVK+m4Y2 oMNsUM6LeVdyo3BLZrR9riCh1rlb/Z3wNcY3caH2h1oNGGFrEbhze75zbv6VNwdNR7ms QHTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=CM4+dDDdgR4VfEundVQTjvmUg0RjtbFKuCf3XpeWvV8=; b=qqZgH3J6KCMdoRn93wkQ6JUS3P4hFTCRL4jcYoDQYhCUQ1bQwwzW2Je9hjl7K8KkYM 6zZpH4dIwNlEnd+GqNjemfs1JvGzOygDQt9WpqYz4zvLUkfCpqDsIhP71qHiyYKzR7Pf 2+7hX+lx2lJ8qEY0qIuGbnlU+t22wd+rcrLwvqH+fHNv4l0ehwa7eJk74pJ5WTBsW+td U48uD5fOf2YVrLcFfgRExG9Ah22WlW+6UHkpihHm5Aby6rda+vKyG26jol4/jfGKbHVr i/MuAvDFx5pAomRQEwkafmmLBoZeCAgFwCHgkZfmAk2qjqlJKAKxnKgRfF6OWv8shN3w 5naQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B7bwY+Nx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id m17-20020a05620a24d100b006fc9ed743d7si401448qkn.85.2022.11.30.03.26.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Nov 2022 03:26:57 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B7bwY+Nx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p0LCn-0004KP-Bt; Wed, 30 Nov 2022 06:24:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p0LCm-0004K2-Ha for qemu-devel@nongnu.org; Wed, 30 Nov 2022 06:24:44 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p0LCj-0004ea-Tq for qemu-devel@nongnu.org; Wed, 30 Nov 2022 06:24:43 -0500 Received: by mail-wr1-x429.google.com with SMTP id z4so26604740wrr.3 for ; Wed, 30 Nov 2022 03:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=CM4+dDDdgR4VfEundVQTjvmUg0RjtbFKuCf3XpeWvV8=; b=B7bwY+NxMcJ6aNrXZYlsXt8nuReqMR4lhV48IiYYtJR627L0pQZ97LCMG+zJsLdDnQ x52cDaGpQum0/+nB0r6JCA2AwZO9s3Myc+rJ/KnuxHVf6ZNpHkeJKM3W28uxtx4VaV1D +QkoXN0nSBwL2Ev8uJwZ0AGZFvNRp0wgVXMRWGqcxvWanD9IgDEgmluW5tzjm8fMQc5o lKUhBo85qsvC9VZXmX8nt0/ZBLnm9pT0x+5XD90FwuBesSS9HBP4WcR7iF5sdOWlbX71 JReHFlfCT8Rv7vm8HMVhy2cqS0yEU4+eLXENBg+rciIzTM0y927Ix/UZ+3AUgU2uyzOd LOaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CM4+dDDdgR4VfEundVQTjvmUg0RjtbFKuCf3XpeWvV8=; b=NJj24lsr0Yku0b5HQHN/ir3nPqqDj31ouY2qJK3Ysk5p7/FZvFX6E/UvnsCIeYpPIf 3c2J8qKEjjkrr0cHIkeGv2rAeArSa7dei5faoPoAPPKuKIZrGSf0Bv8yr2Q+ogA4QVaP 53C5x8MPyhCfwiQ4rcfpzNNmm57m00iSDbiGiVzRYwGi9NJXyIq6nmj1PjmBtb40UxVM 7JWpz/gclspEBbXYLBqXjgvO/pGV8rIL1SA7vFGMPpByWryWI2XSjgB+Vw6rWc8RFtKN 5satYZlX1hTx/IRoXERyqaX6nVPfwWv0XG5JEa4hIsLJJi+IGx0BTqnhj/7neMe8ewn0 K6/g== X-Gm-Message-State: ANoB5plrQXducUDhrmtWl4ztboulEP2T9MJLmkbtEPOXQ98i/Rb8Tf2Y NGIkrcJ43y72dSkWcArac9PhiA== X-Received: by 2002:adf:ea4d:0:b0:22e:38b9:5d6d with SMTP id j13-20020adfea4d000000b0022e38b95d6dmr27508156wrn.276.1669807480116; Wed, 30 Nov 2022 03:24:40 -0800 (PST) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id z10-20020a05600c0a0a00b003c70191f267sm6104510wmp.39.2022.11.30.03.24.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 03:24:39 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 57D211FFB7; Wed, 30 Nov 2022 11:24:39 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: slp@redhat.com, mst@redhat.com, marcandre.lureau@redhat.com, stefanha@redhat.com, mathieu.poirier@linaro.org, viresh.kumar@linaro.org, sgarzare@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH for 7.2 v4 0/5] final vhost-user fixes Date: Wed, 30 Nov 2022 11:24:34 +0000 Message-Id: <20221130112439.2527228-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Hi Michael, Following feedback from the previous posting I've dropped the setting of host_features (probably and overfix while chasing other issues). I've re-ordered the series so the "VM state takes precedence" patch is the last one. I'm going to demur on fixing up vhost-net which on the surface looks like it should benefit from the CHR_EVENT_CLOSED re-factoring but is going to require more invasive tweaks to ensure we properly pass DeviceState to the helpers. Please apply Alex Bennée (4): tests/qtests: override "force-legacy" for gpio virtio-mmio tests hw/virtio: add started_vu status field to vhost-user-gpio hw/virtio: generalise CHR_EVENT_CLOSED handling include/hw: VM state takes precedence in virtio_device_should_start Stefano Garzarella (1): vhost: enable vrings in vhost_dev_start() for vhost-user devices include/hw/virtio/vhost-user-gpio.h | 10 ++++ include/hw/virtio/vhost-user.h | 18 ++++++++ include/hw/virtio/vhost.h | 6 ++- include/hw/virtio/virtio.h | 23 ++++++++-- backends/cryptodev-vhost.c | 4 +- backends/vhost-user.c | 4 +- hw/block/vhost-user-blk.c | 45 +++--------------- hw/net/vhost_net.c | 8 ++-- hw/scsi/vhost-scsi-common.c | 4 +- hw/virtio/vhost-user-fs.c | 4 +- hw/virtio/vhost-user-gpio.c | 26 +++++++---- hw/virtio/vhost-user-i2c.c | 4 +- hw/virtio/vhost-user-rng.c | 4 +- hw/virtio/vhost-user.c | 71 +++++++++++++++++++++++++++++ hw/virtio/vhost-vsock-common.c | 4 +- hw/virtio/vhost.c | 44 ++++++++++++++++-- tests/qtest/libqos/virtio-gpio.c | 3 +- hw/virtio/trace-events | 4 +- 18 files changed, 205 insertions(+), 81 deletions(-)