From patchwork Wed Jun 1 16:51:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 12867069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12F67C433EF for ; Wed, 1 Jun 2022 16:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351847AbiFAQwz (ORCPT ); Wed, 1 Jun 2022 12:52:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343763AbiFAQww (ORCPT ); Wed, 1 Jun 2022 12:52:52 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 16D2D33EBF for ; Wed, 1 Jun 2022 09:52:48 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DA62D14BF; Wed, 1 Jun 2022 09:52:47 -0700 (PDT) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 368E53F66F; Wed, 1 Jun 2022 09:52:47 -0700 (PDT) From: Andre Przywara To: Will Deacon , Julien Thierry Cc: Alexandru Elisei , kvm@vger.kernel.org Subject: [PATCH kvmtool 3/4] virtio/mmio: remove unneeded virtio_mmio_hdr members Date: Wed, 1 Jun 2022 17:51:37 +0100 Message-Id: <20220601165138.3135246-4-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220601165138.3135246-1-andre.przywara@arm.com> References: <20220601165138.3135246-1-andre.przywara@arm.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org So far "struct virtio_mmio_hdr" was modelled exactly like the virtio MMIO protocol header, including reserved fields and members unused by kvmtool. Since we now no longer need to stay byte-for-byte compatible, drop those members to clean up the code. Signed-off-by: Andre Przywara --- include/kvm/virtio-mmio.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/kvm/virtio-mmio.h b/include/kvm/virtio-mmio.h index aa4cab3c..84848eee 100644 --- a/include/kvm/virtio-mmio.h +++ b/include/kvm/virtio-mmio.h @@ -22,22 +22,14 @@ struct virtio_mmio_hdr { u32 vendor_id; u32 host_features; u32 host_features_sel; - u32 reserved_1[2]; u32 guest_features; u32 guest_features_sel; u32 guest_page_size; - u32 reserved_2; u32 queue_sel; u32 queue_num_max; u32 queue_num; u32 queue_align; - u32 queue_pfn; - u32 reserved_3[3]; - u32 queue_notify; - u32 reserved_4[3]; u32 interrupt_state; - u32 interrupt_ack; - u32 reserved_5[2]; u32 status; };