From patchwork Wed Jan 12 11:34:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 531588 Delivered-To: patch@linaro.org Received: by 2002:ad5:544f:0:0:0:0:0 with SMTP id a15csp4327336imp; Wed, 12 Jan 2022 04:14:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJy55G0l/j3A8zW6KwZcJVOiQqvPJfcnYdHRstJT+NAQsyg6koor0axU9S2xocUlYOLS3GTM X-Received: by 2002:a05:6902:1147:: with SMTP id p7mr12737652ybu.184.1641989697152; Wed, 12 Jan 2022 04:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1641989697; cv=none; d=google.com; s=arc-20160816; b=A3nTJbWvOyskTSQBwnxET3HvyTYPfJW5Qj2T7qaz1Dr6wXiWEbhtYSlh+Yr6Yqv8Mv bUqpkSXEO0tcjzoqp+PuxOySP8BBOe0KKsUtn5AS2ST/WJ98a//aTVGRwNylZHlM5sFo JAaDX0hV7jqFh2o4lrTRmWAWnc4QsR+G50tLKABXOAz7DiRJXA748o1xd00xyHdpsh3m IABrEtq6eoN8uUGKGGAnnEuUkawDHctVz9xTbf76HzUkMOetiMkOHg0R1ekB1U752PH2 f026l6f+GFl7j/VM7omp09g2psq8fzMJzZzDkjC74bS4nFkI50epBV+SkiOQcsT+FUsq B30w== 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=PaeMzbq5XQlie9RKzgFtbG7me8Ynld4JtwfwQPkZH50=; b=TJnCsk+AfNJBK9EXWNWOBGwh4IuApsTTFsRqgy400ce0TdD9OXyodvmVlZAu1mYbHh Kt6xjEWptdJmEsjx/CQu+1RCFp3IPih1gB/RgAV3S7Y+WyFWse8feL6QKFPK1ySxkTDl iUxGk7M+e8leY9Fc2roK1bVE5IaeEYzTPQ6X/+DhQ51vsI9p262v24JlHcjNVNWjqe2F 8Jym8vmgmowct80TD0ElFxTAGlx37o4POCLi4YeU57zuZjbnpp21URjwQV40I1C4we2Z xayRjbmPfm0SsAr73BHjyxu01GWhVA6lS7/pkzZnSHxAEi6NKz15IxlZ4wXzGM0HKtQ2 RZUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aJhnE7IY; 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 w19si11124651ybs.6.2022.01.12.04.14.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Jan 2022 04:14: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=aJhnE7IY; 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]:43860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n7cWm-0002aB-LU for patch@linaro.org; Wed, 12 Jan 2022 07:14:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7bzL-00062A-2X for qemu-devel@nongnu.org; Wed, 12 Jan 2022 06:40:23 -0500 Received: from [2607:f8b0:4864:20::630] (port=40905 helo=mail-pl1-x630.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n7bzI-0005KH-Dq for qemu-devel@nongnu.org; Wed, 12 Jan 2022 06:40:22 -0500 Received: by mail-pl1-x630.google.com with SMTP id l15so3756866pls.7 for ; Wed, 12 Jan 2022 03:40:18 -0800 (PST) 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=PaeMzbq5XQlie9RKzgFtbG7me8Ynld4JtwfwQPkZH50=; b=aJhnE7IYxIDhMfH4fRmL0t6oxeN3RQCM4MJ4E9c4i+caAqa15YLuRzUlIWLzD68giO lR2lajrsWxsexAn9XGIt50hC9DbNCk3WvUhBY38F0V2pn2JqLcrOlzmHzior7MgTm6Le ZaDYhAtCKdkJ1gekVAi8inTeP+OiFdvJd7WcrSolSPYZ0N710Syd+CMsZrjzXfv0JLfF g2uJq7orFoP3z5qbaCY5ZPJM1sQ7COb9733eeWzpSnxAKwummwfNar1qMV0rK1fcnUA5 ZghG/+jNKuxWZu/0FeLiep1/QXJPWIZAdq2EacmY0BmrZLOCRlJYrR48aTHlTRasfa7D 7Jxg== 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=PaeMzbq5XQlie9RKzgFtbG7me8Ynld4JtwfwQPkZH50=; b=hq5SJocINifNHWd0cSXTkdfUA3saWztTiIphPc/NTPIXzKH5a37GmHgufkdNcMZnCQ jYkJTMY/HGmBTpH0PkvlYup6Xecb6y7BA8gQU6V9XoK/y0MuMrefd+2ONlL6+A+rCV4f 9IISxhmVVD+surE8hKcz21xI2KunkbyqpQtJlNy6UDnmfXX9UQk5o+onTbqmrz/GoodJ MaE5c5FwVwFsZXAJCOhPdQp8nXUVNFNL7Hq5WOf7lH3WGdBMvhnCE3PKrlkPDL8CvZ6j +U5JtLhWffkDhg5WxD5l5k4H3nohqAm+IxKASPxoRwyHKGEDwEd7zM+gezJIOJcm0Pln KYCw== X-Gm-Message-State: AOAM533dXch6rzv1Qht5wK71MC3SGIkm0O8ruWL+LETxvl4EVsLI4TPy H8pq+sPrN7eiIUP2lUxHwYh+r/oN0tK+4g== X-Received: by 2002:a05:6a00:1a03:b0:4ba:c23e:df67 with SMTP id g3-20020a056a001a0300b004bac23edf67mr8780961pfv.63.1641987303219; Wed, 12 Jan 2022 03:35:03 -0800 (PST) Received: from localhost ([122.171.221.63]) by smtp.gmail.com with ESMTPSA id v20sm5348408pjr.21.2022.01.12.03.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jan 2022 03:35:02 -0800 (PST) From: Viresh Kumar To: qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , "Michael S. Tsirkin" Subject: [PATCH 0/2] virtio: Add vhost-user-gpio device's support Date: Wed, 12 Jan 2022 17:04:57 +0530 Message-Id: X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::630 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=viresh.kumar@linaro.org; helo=mail-pl1-x630.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Viresh Kumar , Vincent Guittot , stratos-dev@op-lists.linaro.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Hello, This patchset adds vhost-user-gpio device's support in Qemu. The support for the same has already been added to virtio specification and Linux Kernel. A Rust based backend is also in progress and is tested against this patchset: https://github.com/rust-vmm/vhost-device/pull/76 --- Viresh Viresh Kumar (2): hw/virtio: add boilerplate for vhost-user-gpio device hw/virtio: add vhost-user-gpio-pci boilerplate hw/virtio/Kconfig | 5 + hw/virtio/meson.build | 2 + hw/virtio/vhost-user-gpio-pci.c | 69 ++++++ hw/virtio/vhost-user-gpio.c | 343 ++++++++++++++++++++++++++++ include/hw/virtio/vhost-user-gpio.h | 35 +++ 5 files changed, 454 insertions(+) create mode 100644 hw/virtio/vhost-user-gpio-pci.c create mode 100644 hw/virtio/vhost-user-gpio.c create mode 100644 include/hw/virtio/vhost-user-gpio.h