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 X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2900C432BE for ; Wed, 1 Sep 2021 14:44:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4D2D560724 for ; Wed, 1 Sep 2021 14:44:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4D2D560724 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=virtuozzo.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:49008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLRTh-00062K-Gm for qemu-devel@archiver.kernel.org; Wed, 01 Sep 2021 10:44:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLMEF-0003bF-Ls for qemu-devel@nongnu.org; Wed, 01 Sep 2021 05:08:19 -0400 Received: from relay.sw.ru ([185.231.240.75]:35408) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLME6-0005OX-35 for qemu-devel@nongnu.org; Wed, 01 Sep 2021 05:08:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-Id:Date:Subject:From: Content-Type; bh=3YSujolLv/yWWqLflRXJooQucC4DZ5eW6P/XDDgLrAc=; b=jABRzTji6P2U qkK4B7ftcesTAYuItfdTamLRpdKOH/DPwsQ/nxhnFQLYKkCUSFvyYQLuzEN1ERJGne5tNzFP9TrNt dYGhVnEQBj2HSLsnOSUiYCCj1sjisPgxGq7zj5xpEHZuK8phG6MqwzpvPLbIM6ZFJFPTWq1AHud1i X5VrI=; Received: from [192.168.15.100] (helo=max-Swift-SF314-57.sw.ru) by relay.sw.ru with esmtp (Exim 4.94.2) (envelope-from ) id 1mLME0-000RwD-Fq; Wed, 01 Sep 2021 12:08:04 +0300 From: Maxim Davydov To: qemu-devel@nongnu.org Cc: den@openvz.org, mst@redhat.com, stefanha@redhat.com, fam@euphon.net, amit@kernel.org, kraxel@redhat.com, berrange@redhat.com, Maxim Davydov Subject: [PATCH v1 0/8] Virtio features acknowledged by guest Date: Wed, 1 Sep 2021 12:07:56 +0300 Message-Id: <20210901090804.7139-1-maxim.davydov@virtuozzo.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.231.240.75; envelope-from=maxim.davydov@virtuozzo.com; helo=relay.sw.ru 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 01 Sep 2021 10:43:12 -0400 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: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" In some situations (for instance, debug), we want to be able to see the features that were confirmed by the guest. At the same time, we would like to do this safely, without the possibility of setting bits of guest features from the outside. Maxim Davydov (8): qdev-properties: Add read-only 64 bit property virtio: Add tracking of the common virtio guest features virtio-gpu: Add tracking of the virtio guest feature bits virtio-serial: Add tracking of the virtio guest feature bits virtio-net: Add tracking of the virtio guest feature bits scsi: Add tracking of the acknowledged feature bits virtio-blk: Add tracking of the virtio guest feature bits virtio-balloon: Add tracking of the virtio guest feature bits hw/block/virtio-blk.c | 20 ++++--- hw/char/virtio-serial-bus.c | 5 +- hw/core/qdev-properties.c | 32 +++++++++++ hw/display/vhost-user-gpu.c | 3 +- hw/display/virtio-gpu.c | 8 +-- hw/net/virtio-net.c | 118 +++++++++++++++++++++++++---------------- hw/scsi/vhost-scsi.c | 6 +-- hw/scsi/vhost-user-scsi.c | 18 +++---- hw/scsi/virtio-scsi.c | 10 ++-- hw/virtio/virtio-balloon.c | 20 ++++--- hw/virtio/virtio.c | 2 +- include/hw/qdev-properties.h | 5 ++ include/hw/virtio/virtio-gpu.h | 10 ++-- include/hw/virtio/virtio.h | 39 +++++++++----- 14 files changed, 193 insertions(+), 103 deletions(-) -- 1.8.3.1