[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 09/12] accel/xen/xen-all: export xenstore_record_dm_state
- To: Alex Bennée <alex.bennee@xxxxxxxxxx>
- From: "Garhwal, Vikram" <vikram.garhwal@xxxxxxx>
- Date: Sat, 29 Oct 2022 05:22:54 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aTMvdiXwLxmjhJzVVraDj1PpAmt+aoThnAtb5PeZJO8=; b=gnNXgL6+2ThrYGGBgJ1Uipjr1Fj65Q52L3EY/hudOW+UXjb7yaptohzj7lCHCLy1YwKdlbd0fRmN0nbyaVXg7tuyginE5/mmOdZ+O83mhOO7vyyJOBmgBYNMgTSsZf7dRwpDtydHJOz+Mm4ITojw9ik6sTgU9lJ3RfzwjGqtHEc+MyqiCrjUtHmfRUNapUGAPLiZi/mAqdyVxanVPrdkRBfdMyuthR+hA+fWVGbn6QNZP1qyCVQENdu01Z5EbSwH9+2468kLHXOUGtq6mzIiwnMSxifAnKcOk9bN6OLlD8Xdn3TLB35XVtvz/HK6Pc71G8ApVrdXKR7VCc95dx7a8A==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GAMV7lG9djXXt6P58EKuBL3cZm/5wOcfLmWfx3cDgfQIEbOsxbnbMkZLUOJu/eIKYIDhVCBdHHcI9gU6sNDBwGFqL1j62qTS6Xrjc1VTkZa0IYEjqo7FZF6lDKvvEXb2kBPLfSDRXigB5RhhKitcBv1jQbjhPt+bdPgSCYbOaWqOTlNfqrabEO4NLcRXbT6DpNn/AUVKreleYcI1ChGs4eDSOo+lEmEawvau0/N8jao0h2PHjHjhYigunWTylO3oN99XwmrxLytA1YYVKB+SQvZaKsNCYKcbdx07VJimLkxkXQ5EVoSXKLVKYJuPgPyCnDlBKp1vtxDoqsQGC/UZ4w==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: "qemu-devel@xxxxxxxxxx" <qemu-devel@xxxxxxxxxx>, "Stabellini, Stefano" <stefano.stabellini@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Sat, 29 Oct 2022 05:23:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Thread-index: AQHY4FQy+XJKg8lN/EicOL7R8b0Vta4iCG0AgALhTuE=
- Thread-topic: [PATCH v1 09/12] accel/xen/xen-all: export xenstore_record_dm_state
Thanks, Alex, for reviewing this one. I built for all the archs and it was fine. Can you please share more about what environment builds are breaking? So, I can test the changes for v2.
Regards,
Vikram
From: Alex Bennée <alex.bennee@xxxxxxxxxx>
Date: Thursday, October 27, 2022 at 2:24 AM
To: Garhwal, Vikram <vikram.garhwal@xxxxxxx>
Cc: qemu-devel@xxxxxxxxxx <qemu-devel@xxxxxxxxxx>, Stabellini, Stefano <stefano.stabellini@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Anthony Perard <anthony.perard@xxxxxxxxxx>, Paul Durrant <paul@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
<xen-devel@xxxxxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH v1 09/12] accel/xen/xen-all: export xenstore_record_dm_state
Vikram Garhwal <vikram.garhwal@xxxxxxx> writes:
> xenstore_record_dm_state() will also be used in aarch64 xenpv machine.
>
> Signed-off-by: Vikram Garhwal <vikram.garhwal@xxxxxxx>
> Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
> ---
> accel/xen/xen-all.c | 2 +-
> include/hw/xen/xen.h | 2 ++
> 2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/accel/xen/xen-all.c b/accel/xen/xen-all.c
> index 69aa7d018b..276625b78b 100644
> --- a/accel/xen/xen-all.c
> +++ b/accel/xen/xen-all.c
> @@ -100,7 +100,7 @@ void xenstore_store_pv_console_info(int i, Chardev *chr)
> }
>
>
> -static void xenstore_record_dm_state(struct xs_handle *xs, const char *state)
> +void xenstore_record_dm_state(struct xs_handle *xs, const char *state)
> {
> char path[50];
>
> diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h
> index afdf9c436a..31e9538a5c 100644
> --- a/include/hw/xen/xen.h
> +++ b/include/hw/xen/xen.h
> @@ -9,6 +9,7 @@
> */
>
> #include "exec/cpu-common.h"
> +#include <xenstore.h>
This is breaking a bunch of the builds and generally we try and avoid
adding system includes in headers (apart from osdep.h) for this reason.
In fact there is a comment just above to that fact.
I think you can just add struct xs_handle to typedefs.h (or maybe just
xen.h) and directly include xenstore.h in xen-all.c following the usual
rules:
https://qemu.readthedocs.io/en/latest/devel/style.html#include-directives
It might be worth doing an audit to see what else is including xen.h
needlessly or should be using sysemu/xen.h.
>
> /* xen-machine.c */
> enum xen_mode {
> @@ -31,5 +32,6 @@ qemu_irq *xen_interrupt_controller_init(void);
> void xenstore_store_pv_console_info(int i, Chardev *chr);
>
> void xen_register_framebuffer(struct MemoryRegion *mr);
> +void xenstore_record_dm_state(struct xs_handle *xs, const char *state);
>
> #endif /* QEMU_HW_XEN_H */
--
Alex Bennée
|
|