Message ID | 20250321183556.155097-6-pbonzini@redhat.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:5f4c:0:b0:38f:210b:807b with SMTP id cm12csp1023597wrb; Fri, 21 Mar 2025 11:38:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVDHIpCKTbzL+tCDDP69XCL/mVs2DkG425QJstGD/46/GPx+AxLRb0ZZu12+mhFbujj+uCtfg==@linaro.org X-Google-Smtp-Source: AGHT+IHLXN9gFXFQGxh0omyPbqtIQncOUpfbxtmQ/HTq1HgTZ9+RG6p4QeS/qK3veV6d+nGHWv5k X-Received: by 2002:a05:622a:1144:b0:476:fd69:ccb with SMTP id d75a77b69052e-4771dd93d43mr76175491cf.27.1742582309198; Fri, 21 Mar 2025 11:38:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742582309; cv=none; d=google.com; s=arc-20240605; b=Gt3JnYFfejlrb88As/FD/YkEH4oNvhJuGwS76sFAxWyxIcasyBtiyTabdn/8eVyl3X gDBsXCTGDgh+WwEWGGgBnuW4gvGnpgKasbYblocluhiVP9EFv+WczorCO1NC3KmD/ZcO Z9f0spa7GPTMkL0Aj1q5cTJ9qpSncxru8NkfqEN1U7B2sfd2Dyd8aAVSYOQDuCItecoK mWdiRW4hNE7RAxrQIUcCVhLE4Fc1wOTvCfy7wHQPF65mjgHaZgs6mbYptmFC9bvKE/Rs 7ONTcKZIJGGde5tfeMNI5/Z9Fq5+ej2+VR6gDLkcpzkEy1pwzwyL4WZTmH+ylOP4rNHp UMdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kmzz+Z10cF8s6oKBzeZDluVa8sEBlKEmjUCkAgJ5/6I=; fh=TOmzLkIg3Avn3G6XrS0Tvpz93AMau8AeCcR3WyPrFlg=; b=PcDQkTHOooH1F/FTzadZji8yP3aa5AhRcPIkVGJmnGg9M3rfl6F3lTLNH5VCiKBv1r 7yLIHYOJqPobmOJkS0B/YP/728gSJmBALBxyuqkgWioVjOyV2g6taxgL57CVl0jrtXy8 uwAByBMYI1okeScTt45qWqhDu4wmnaA+7kp9yakAaK3xpLxBGIK1OY7Qy/KdELwiZ2gy baSsQn9HHNpCA8rgEUUnrYmRGEoAsCmfeW3ems9TfEAo8/zOLSGpzKrT5E/vF5nOEez9 nUIr/OgoRgWvtDvmqpWWOmeOo3T/jFpIiinOd9FBWgrUIq5yR3vazbYondGOKXKzZNzL qJNA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H8B92rHV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=redhat.com Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-4771d1817c3si22508301cf.143.2025.03.21.11.38.28 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Mar 2025 11:38:29 -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=@redhat.com header.s=mimecast20190719 header.b=H8B92rHV; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=redhat.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tvhEK-00025s-OV; Fri, 21 Mar 2025 14:36:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>) id 1tvhEE-0001c7-My for qemu-devel@nongnu.org; Fri, 21 Mar 2025 14:36:22 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <pbonzini@redhat.com>) id 1tvhED-000726-4y for qemu-devel@nongnu.org; Fri, 21 Mar 2025 14:36:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742582180; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kmzz+Z10cF8s6oKBzeZDluVa8sEBlKEmjUCkAgJ5/6I=; b=H8B92rHV6umBp2kGbM9xxYqLLXz+0Gk7CKfnPJqOefFUaZbOIPXTPHb5SjKGLZd80pbOwF 85SDOJOO5bJwZK2jGSu4X8DVPdWMXJ8++42LYvD5iWPuId6H5ch6j8u5oL+1jprXjQ0/1W F8dHeBZtYLjx20HBNkzTNC0CFQZz15g= Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-594-o1X-onHtN9O72CbQe23b0g-1; Fri, 21 Mar 2025 14:36:19 -0400 X-MC-Unique: o1X-onHtN9O72CbQe23b0g-1 X-Mimecast-MFC-AGG-ID: o1X-onHtN9O72CbQe23b0g_1742582178 Received: by mail-ej1-f72.google.com with SMTP id a640c23a62f3a-ac25852291cso195405666b.2 for <qemu-devel@nongnu.org>; Fri, 21 Mar 2025 11:36:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742582176; x=1743186976; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kmzz+Z10cF8s6oKBzeZDluVa8sEBlKEmjUCkAgJ5/6I=; b=mPw1hpo9OqD5OFH8J2X4X72WNwHreGMGprx8VZHaAwM5f9S0OxELUnLPeubiBMysOd csKxSr9GURtM4y9/smosz7gn4megV3VDCYTyqUmXyT9FB0xIlskn6X725vc1D3FsG4fr 0ko4xUQ0NPqDfCRT1F+WAT9wZq9PS9Age3Zu11S2A14hrOEVzxSmjjH6T9rrpicRBHv5 uKGbb7qKpUxm++/gvlC7fDwKfh3/M2gGKNGGlRK7x/qYtbfNMM1fHxoHT5w4Wq2H48AJ DICq23XTcRoZSJ1s60vjf8RiGjZzinJJf9elWLxDPmnytj+VEUMsA29+vzvL9WTRfVAh X0Cw== X-Gm-Message-State: AOJu0YzabG//H28ZR5nvYCWoebjcX8eivHo3GHsfGJbuI1vHFDAE85+m mZjLoOMtjkzNYUITfBO850CWMNNIhD056sqTo55gjMBxDxrqjQdTyDvNVMkU8M6gh4wLGvu5mCy Cb61XQEdL5klrEswzOfEnD2UkHZZlk1TiDdez4LUnREqTZiUTbct08qfjX0kV3Pgb//NXSmydJE bF6DWD/oRqal0TkjA2YMEgZufPyDlSTdAth9zm X-Gm-Gg: ASbGncv4IucfjgCcYdv0COjQqxuPKIyQl3h9OHZhUywxqpzJ9StqXmon/MZmvUTA+5T qbuAtSFHy/MGG9oaYSQxdmTCeMhVteudHFgvLI00KBpkl3RZhTkpmiEv1iF5LklUpW+1ge6/Sw1 lsjpneE9stA0/Q3gysp2i16slnwPE+3k9o/EFYBTY4bb2R3fgz6hogEGeHcTaxD4q+EKBHv1oOD 4PGWIGABoeyzkkP7A1nbzJh8jW2keWy9C6/E9gKkZAZzvq6Y3Rn8BJIdH1djpUbzag0XUuQBSqe aLtZwWDSF7J+3Ez68RhV X-Received: by 2002:a17:907:3ea2:b0:ac2:baab:681c with SMTP id a640c23a62f3a-ac3f22b2bddmr421988166b.28.1742582176360; Fri, 21 Mar 2025 11:36:16 -0700 (PDT) X-Received: by 2002:a17:907:3ea2:b0:ac2:baab:681c with SMTP id a640c23a62f3a-ac3f22b2bddmr421983866b.28.1742582175873; Fri, 21 Mar 2025 11:36:15 -0700 (PDT) Received: from [192.168.122.1] ([151.49.194.153]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac3efb51cebsm194768966b.107.2025.03.21.11.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Mar 2025 11:36:14 -0700 (PDT) From: Paolo Bonzini <pbonzini@redhat.com> To: qemu-devel@nongnu.org Cc: Peter Maydell <peter.maydell@linaro.org>, Zhao Liu <zhao1.liu@intel.com> Subject: [PULL 05/24] hw/char/pl011: Pad PL011State struct to same size as Rust impl Date: Fri, 21 Mar 2025 19:35:37 +0100 Message-ID: <20250321183556.155097-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250321183556.155097-1-pbonzini@redhat.com> References: <20250321183556.155097-1-pbonzini@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=pbonzini@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.332, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, 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.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/24] rust: Kconfig: Factor out whether PL011 is Rust or C
|
expand
|
diff --git a/include/hw/char/pl011.h b/include/hw/char/pl011.h index 4fcaf3d7d30..299ca9b18bb 100644 --- a/include/hw/char/pl011.h +++ b/include/hw/char/pl011.h @@ -52,6 +52,11 @@ struct PL011State { Clock *clk; bool migrate_clk; const unsigned char *id; + /* + * Since some users embed this struct directly, we must + * ensure that the C struct is at least as big as the Rust one. + */ + uint8_t padding_for_rust[16]; }; DeviceState *pl011_create(hwaddr addr, qemu_irq irq, Chardev *chr);