All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Juergen Gross <jgross@suse.com>, xen-devel@lists.xenproject.org
Cc: Julien Grall <julien@xen.org>,
	Anthony PERARD <anthony.perard@vates.tech>,
	Jason Andryuk <jason.andryuk@amd.com>
Subject: Re: [PATCH v2 1/9] xenstored: use fread() instead of mmap() for reading live update state
Date: Tue, 29 Jul 2025 20:25:00 +0100	[thread overview]
Message-ID: <d2eb4a63-1bec-497d-911f-cf458533cd6f@citrix.com> (raw)
In-Reply-To: <dfd09f68-1d2a-42b7-ba8f-c1f54c6861ce@citrix.com>

On 29/07/2025 8:21 pm, Andrew Cooper wrote:
> On 29/07/2025 12:01 pm, Juergen Gross wrote:
>> diff --git a/tools/xenstored/lu.c b/tools/xenstored/lu.c
>> index 77e0d377c5..f2c8b92d07 100644
>> --- a/tools/xenstored/lu.c
>> +++ b/tools/xenstored/lu.c
>> @@ -27,9 +27,11 @@ struct live_update *lu_status;
>>  
>>  struct lu_dump_state {
>>  	void *buf;
>> +	unsigned int buf_size;
>>  	unsigned int size;
>> -	int fd;
>> +	unsigned int offset;
>>  	char *filename;
>> +	FILE *fp;
> I know there's already one unsigned int size here, but life is too short
> to not use size_t from the get-go.

That said, offset really needs to be an offs64_t if you want 32bit
guests to 9P safely on a modern filesystem.

~Andrew


  reply	other threads:[~2025-07-29 19:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-29 11:01 [PATCH v2 0/9] Enable Xenstore-stubdom Live Update Juergen Gross
2025-07-29 11:01 ` [PATCH v2 1/9] xenstored: use fread() instead of mmap() for reading live update state Juergen Gross
2025-07-29 19:21   ` Andrew Cooper
2025-07-29 19:25     ` Andrew Cooper [this message]
2025-07-30  6:18       ` Jürgen Groß
2025-07-30  6:54         ` Juergen Gross
2025-07-29 11:01 ` [PATCH v2 2/9] libevtchn: add O_CLOEXEC support for Mini-OS Juergen Gross
2025-07-29 16:32   ` Anthony PERARD
2025-07-29 11:01 ` [PATCH v2 3/9] libxengnttab: set the cloexec flag on Mini-OS Juergen Gross
2025-07-29 16:34   ` Anthony PERARD
2025-07-29 11:01 ` [PATCH v2 4/9] xenstored: don't use xenevtchn_fdopen() in stubdom Juergen Gross
2025-07-29 11:01 ` [PATCH v2 5/9] tools/libxenevtchn: add xenevtchn_bind() under Mini-OS Juergen Gross
2025-07-29 17:00   ` Anthony PERARD
2025-07-30  6:03     ` Jürgen Groß
2025-07-29 11:01 ` [PATCH v2 6/9] xenstored: rebind event channels after live update in stubdom Juergen Gross
2025-07-29 11:01 ` [PATCH v2 7/9] tools/xenstored: make stubdom_init() live update aware Juergen Gross
2025-07-29 11:01 ` [PATCH v2 8/9] SUPPORT.md: add xenstorepvh-stubdom live update Juergen Gross
2025-07-29 11:01 ` [PATCH v2 9/9] CHANGELOG.md: " Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d2eb4a63-1bec-497d-911f-cf458533cd6f@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=anthony.perard@vates.tech \
    --cc=jason.andryuk@amd.com \
    --cc=jgross@suse.com \
    --cc=julien@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.