[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] ext4: Give 32bit personalities 32bit hashes
From: |
Peter Maydell |
Subject: |
Re: [PATCH] ext4: Give 32bit personalities 32bit hashes |
Date: |
Tue, 24 Mar 2020 09:29:58 +0000 |
On Tue, 24 Mar 2020 at 02:34, Theodore Y. Ts'o <address@hidden> wrote:
> Another possibility, which would be messier for qemu, would be use a
> flag set via fcntl. That would require qemu from noticing when the
> guest is calling open, openat, or openat2, and then inserting a fcntl
> system call to set the 32-bit readdir mode. That's cleaner from the
> kernel interface complexity perspective, but it's messier for qemu.
On the contrary, that would be a much better interface for QEMU.
We always know when we're doing an open-syscall on behalf
of the guest, and it would be trivial to make the fcntl() call then.
That would ensure that we don't accidentally get the
'32-bit semantics' on file descriptors QEMU opens for its own
purposes, and wouldn't leave us open to the risk in future that
setting the PER_LINUX32 flag for all of QEMU causes
unexpected extra behaviour in future kernels that would be correct
for the guest binary but wrong/broken for QEMU's own internals.
thanks
-- PMM
- [PATCH] ext4: Give 32bit personalities 32bit hashes, Linus Walleij, 2020/03/17
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Florian Weimer, 2020/03/17
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Peter Maydell, 2020/03/17
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Linus Walleij, 2020/03/19
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Peter Maydell, 2020/03/19
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Linus Walleij, 2020/03/19
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Theodore Y. Ts'o, 2020/03/23
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes,
Peter Maydell <=
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Theodore Y. Ts'o, 2020/03/24
- Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Linus Walleij, 2020/03/24
Re: [PATCH] ext4: Give 32bit personalities 32bit hashes, Andreas Dilger, 2020/03/17