From patchwork Tue Oct 12 20:59:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 515666 Delivered-To: patch@linaro.org Received: by 2002:ac0:b5cc:0:0:0:0:0 with SMTP id x12csp5830070ime; Tue, 12 Oct 2021 14:01:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKNrVAv0TCQox8sIduI8uGZqeBes7A/onDqOiKLNAr9EtbILguVvg02EoU6RRM2nyMX7Ir X-Received: by 2002:ac8:7f86:: with SMTP id z6mr25686189qtj.71.1634072487114; Tue, 12 Oct 2021 14:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634072487; cv=none; d=google.com; s=arc-20160816; b=OgMmKMv/1hPnnt3CSdEYCm4GlSvbugV9iEkMOpkJ2ReUFhk3/4k2n+P4IepLSToc12 WpjLE/XU4Xzw11bltROWrMkCO8+6K3U4HOv+VwKz7H3IrvHySAx4EZ6PSNEdxPtOiMAn eK/Ny8/3vf0+ha5aVfWPBQut068G9OvvUhoB8qiHTN2twUmVDR8qmx2t/I5YSGzXCCzn 77N89aHF4NvxF582vhew4Wbo8rDjzKAdunK4ApMrXYZpkXck301A1QkcJjXhEqzgs9ST S9/+Fbm01d8tY2rGxQjpJAGBEGWRZFc5toJoESoK7eaaj0cTtQJGe5elYuu4ouVM5HAM 3aag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=JeBFfQ/+qvVCxbX10oVdP+9CpdaapRqqSfiSwCgvArI=; b=SU8ukJCMORI3GevUSQ0EIiL3vl0m1rA01AbH4bbrZCX38R8xkIdQasUGDHVU4Bagfy 4BnhcFSsmBNfeVZ1RfhEHV1HLhlB9Kqurp9/M7WE10RZMbcPHLefvBU2QiaFKwpf/T7v ykJiW8WpbYINYWZwBA4ahaky3oIuvNR8YY5gcI9BhVp71Ku6zLzGSvMbMbVwEQQGiZgZ 9PaMuUaKZ/nxHriqxdpLOe7v0+USXaN+xblGD/Bf6WVsepepm/xi1duEj6Xx9GSf1dOO mdJ3m5wALUi/BvWGQXo1Vq+XT1Eu77u2a0MJLGJ6XfNO/pfKoVNZqYjPrmINIzHRRTqM 5rIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xSg3DcqI; 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 v66si7557245qkd.135.2021.10.12.14.01.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 12 Oct 2021 14:01:27 -0700 (PDT) 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=xSg3DcqI; 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]:45888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maOtq-0005t3-Ij for patch@linaro.org; Tue, 12 Oct 2021 17:01:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44244) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maOre-0005pw-O2 for qemu-devel@nongnu.org; Tue, 12 Oct 2021 16:59:10 -0400 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]:45816) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maOrc-0005BE-UA for qemu-devel@nongnu.org; Tue, 12 Oct 2021 16:59:10 -0400 Received: by mail-pf1-x436.google.com with SMTP id i65so547577pfe.12 for ; Tue, 12 Oct 2021 13:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JeBFfQ/+qvVCxbX10oVdP+9CpdaapRqqSfiSwCgvArI=; b=xSg3DcqIagg3zegsvN5xZceTUfarxU10z2g8k74MZbJMR2mfbTZ+prX+OeQ432lzL1 xZOYyErbRSY10blEU1mqb/vhEw9LQKVCmh8UDau9od4HvTZQ+Jt2JC9Br/f3M4z1mK6K UyHKGVNnm46sqi8L9hIECfDxmUqeFYkw51BwWO8bBYXCXWyDsTK1oSlGhzFpo7ipNXju fqc7ERywxfmHgQ5I7gSg/1T4yVfpQ1OF/CIIXPNIHApxEteLK0H4X8ePLYRXgR0Pt1ag Zcc6VFqXF4J1Nt6cHZqg52cOxaYWHZdONAAuD9nxHRmRDRMdVhPbi8UC2FMg6h1MVhtt muYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JeBFfQ/+qvVCxbX10oVdP+9CpdaapRqqSfiSwCgvArI=; b=47pZk0DRCPasawFy8MDLOMQcNQwM/T5H54CMVpsLwsscsSiAxrFAyv/To4tmKDJqB9 NRZ/u1BPhkusuczQ5TFdq30ONJlQPsPriU0n3Sx5zYd0FHzUNZi+KDv2PLZtRZiZchIc MvSXFoOqgtnVuSdgFWHU1waJyJOT5/adM6r+oS5C7AVbVLkFT6tFzkMzZi8vBPsFR49W ExMOXQhB4obgWQJF5s3VJw8N79RhnMKsXYqfMc7BB2VKTHzijwcnELQeO7JAbYg2Srcl JsqslgIkEg+LzmzmUctYbv/3SEBpqIo9udS7qT6povm4LqkxEq3Y6I+WHftBFmh1+KYi iLMQ== X-Gm-Message-State: AOAM533V1rvWoHgTmh/UTAEbA9Y2fqoEntJDVxYX2qAEdFLaphEa/YHl x5iLw1UdQOfOrm2MtjdJfUY7ZQ== X-Received: by 2002:a62:5209:0:b0:44c:68a7:3a61 with SMTP id g9-20020a625209000000b0044c68a73a61mr33564201pfb.83.1634072346387; Tue, 12 Oct 2021 13:59:06 -0700 (PDT) Received: from p14s.cg.shawcable.net (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id e24sm11695087pfn.8.2021.10.12.13.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Oct 2021 13:59:05 -0700 (PDT) From: Mathieu Poirier To: mst@redhat.com Subject: [PATCH v5 0/3] virtio: Add vhost-user based RNG Date: Tue, 12 Oct 2021 14:59:01 -0600 Message-Id: <20211012205904.4106769-1-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::436; envelope-from=mathieu.poirier@linaro.org; helo=mail-pf1-x436.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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.bennee@linaro.org, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This set implements a random number generator (RNG) device that follows the vhost-user protocol. Aside from a new reference to file vhost-user-rng.rst, the code and features of this revision are unchanged. Applies cleanly to git://git.qemu.org/qemu.git master(8be1d4ed9838). Thanks, Mathieu [1]. https://github.com/rust-vmm/vhost-device/pull/29 Mathieu Poirier (3): vhost-user-rng: Add vhost-user-rng implementation vhost-user-rng-pci: Add vhost-user-rng-pci implementation docs: Add documentation for vhost based RNG implementation docs/system/device-emulation.rst | 1 + docs/system/devices/vhost-user-rng.rst | 39 ++++ hw/virtio/Kconfig | 5 + hw/virtio/meson.build | 2 + hw/virtio/vhost-user-rng-pci.c | 79 +++++++ hw/virtio/vhost-user-rng.c | 289 +++++++++++++++++++++++++ include/hw/virtio/vhost-user-rng.h | 33 +++ 7 files changed, 448 insertions(+) create mode 100644 docs/system/devices/vhost-user-rng.rst create mode 100644 hw/virtio/vhost-user-rng-pci.c create mode 100644 hw/virtio/vhost-user-rng.c create mode 100644 include/hw/virtio/vhost-user-rng.h -- 2.25.1