bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH gnumach] x86_64: Support 8 byte inlined port rights to avoid


From: Samuel Thibault
Subject: Re: [PATCH gnumach] x86_64: Support 8 byte inlined port rights to avoid message resizing.
Date: Tue, 28 Nov 2023 22:02:03 +0100
User-agent: NeoMutt/20170609 (1.8.3)

Luca, le mar. 28 nov. 2023 21:57:54 +0100, a ecrit:
> Il 24/11/23 22:30, Flavio Cruz ha scritto:
> > If a port is inlined in a message, the user has to use
> > mach_port_name_inlined_t to define each port. Out of line memory
> > continues to use mach_port_name_t since that memory has to be copied to
> > the kernel anyway.
> > 
> > Both copyinmsg and copyoutmsg can be reduced to nothing (if we ignore
> > USER32) as a follow up but kept this patch simple for ease of review.
> 
> wouldn't they just become almost an alias to copyin/copyout, plus setting
> msg size? (as in the 32-bit case)
> 
> In that case probably copy_user.c is not needed anymore, on a full 64-bit
> system, and would be also simpler than this change.

Yes, that's the eventual goal :)

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]