From nobody Fri Dec 19 07:47:26 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1549564455590206.81332531799683; Thu, 7 Feb 2019 10:34:15 -0800 (PST) Received: from localhost ([127.0.0.1]:44952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1groV2-0005Gj-GP for importer@patchew.org; Thu, 07 Feb 2019 13:34:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grnwq-0002pb-Pj for qemu-devel@nongnu.org; Thu, 07 Feb 2019 12:58:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grnwp-0002iC-Ms for qemu-devel@nongnu.org; Thu, 07 Feb 2019 12:58:52 -0500 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]:38262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grnwp-0002Zt-EB for qemu-devel@nongnu.org; Thu, 07 Feb 2019 12:58:51 -0500 Received: by mail-wm1-x343.google.com with SMTP id v26so814483wmh.3 for ; Thu, 07 Feb 2019 09:58:28 -0800 (PST) Received: from 640k.lan ([93.56.166.5]) by smtp.gmail.com with ESMTPSA id q12sm12708982wmf.2.2019.02.07.09.58.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 09:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=bGU6DN/yiLcS30nXpMwcBUwHTG5VcFf6NEzDf3p0Pe0=; b=II44DUOommwJdtBuQeOyh3cWgo1T/BHY+a/CNSl4AMhRORus+l0XcSzZVWWAHZWZvN dFnA9XxW5hMqmNu2VFkqM88n4Jce4Iz5j374tOgcA5VN/adOSYik2LdhIkZ/gzqWMkx1 cAU8zrhJfh6eBRfzLhTXQE/QMHB8NzVWfL9zmzYuJ+gNq9RhcG9Jjr5PhyTwKulJGuj9 I3Ijh+pR10A/iYG/9vwAtgwC71KTbC+flY+fD97gswaAAYjVrl99JGEChkwxEpetfNwk bMx1W8YYHZLjr0ZOeb4/4nSfxCmWJUwlxKd++H0Q/wawqcTtTUF62eiWUTmSKyFFzkxW Doow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=bGU6DN/yiLcS30nXpMwcBUwHTG5VcFf6NEzDf3p0Pe0=; b=oNw5cq/JPh0luEoobtaxy+otionHo2zJbpRVsbD9wes0sKR6LcRytzI4bEVbErBeb5 wASvXZai85OaDZ+KB53nNV0ko9KbWWsvTBJaaqOGvAARTrpz9XsIrWmopbOgxMh0fPgJ Wofl9LS96hiiWGKh1XFzYzIKQHCoJtI+g0ygClzqwlOcaYRby3cOmylUK9qd+o0SnR19 +U2pNFFnI93XDls4WvVU8tGeUARI2ikZNvzzyfmWl4nrQi1z3rmoLKPnKlBv/AiuCIW+ N0h4mc6J/FiQbt1Q7RaFfFZTuh/0u7Xt4VsoVEjOY8oLvv+PQGLrlnBG0G4bm9g+VHMz T9ow== X-Gm-Message-State: AHQUAubhEHmle+V0tNCAi24VK3TtbNUmdOjzUzpFI+LOB6ynpv1HXpvW MPlYC6vaIrP+09OHsnu/V9YBdkz1 X-Google-Smtp-Source: AHgI3Iak6MSg99aA+w3NBr7iq0T/F71NAY62fKx03ndikSuK78Al22clq3jThToplrp0sascFXGh+g== X-Received: by 2002:a1c:7c07:: with SMTP id x7mr8426497wmc.82.1549562307178; Thu, 07 Feb 2019 09:58:27 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Thu, 7 Feb 2019 18:57:34 +0100 Message-Id: <1549562254-41157-52-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1549562254-41157-1-git-send-email-pbonzini@redhat.com> References: <1549562254-41157-1-git-send-email-pbonzini@redhat.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::343 Subject: [Qemu-devel] [PATCH 51/51] FIXME vhost: add more stubs X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: thuth@redhat.com, philmd@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Due to the dependency of net/ against hw/net/, it is not possible to compile out hw/net/vhost_net.c for now. Add more stubs to allow it to compile when hw/net/vhost.c is missing. (To be re-evaluated after rebase on top of the revamped vhost_net configury= ). Signed-off-by: Paolo Bonzini --- hw/virtio/vhost-stub.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 58 insertions(+) diff --git a/hw/virtio/vhost-stub.c b/hw/virtio/vhost-stub.c index 049089b..ef8e54d 100644 --- a/hw/virtio/vhost-stub.c +++ b/hw/virtio/vhost-stub.c @@ -15,3 +15,61 @@ VhostUserState *vhost_user_init(void) void vhost_user_cleanup(VhostUserState *user) { } + +int vhost_dev_init(struct vhost_dev *hdev, void *opaque, + VhostBackendType backend_type, uint32_t busyloop_timeou= t) +{ + return -ENODEV; +} + +void vhost_dev_cleanup(struct vhost_dev *hdev) +{ +} + +int vhost_dev_start(struct vhost_dev *hdev, VirtIODevice *vdev) +{ + abort(); +} + +void vhost_dev_stop(struct vhost_dev *hdev, VirtIODevice *vdev) +{ +} + +int vhost_dev_enable_notifiers(struct vhost_dev *hdev, VirtIODevice *vdev) +{ + abort(); +} + +void vhost_dev_disable_notifiers(struct vhost_dev *hdev, VirtIODevice *vde= v) +{ + abort(); +} + +int vhost_net_set_backend(struct vhost_dev *hdev, + struct vhost_vring_file *file) +{ + abort(); +} + +uint64_t vhost_get_features(struct vhost_dev *hdev, const int *feature_bit= s, + uint64_t features) +{ + abort(); +} + +void vhost_ack_features(struct vhost_dev *hdev, const int *feature_bits, + uint64_t features) +{ + abort(); +} + +bool vhost_virtqueue_pending(struct vhost_dev *hdev, int n) +{ + abort(); +} + +void vhost_virtqueue_mask(struct vhost_dev *hdev, VirtIODevice *vdev, int = n, + bool mask) +{ + abort(); +} --=20 1.8.3.1