qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] scripts: update (rewrite) qemu-binfmt-conf.h


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] scripts: update (rewrite) qemu-binfmt-conf.h
Date: Sat, 30 May 2015 20:32:46 +0100

On 30 May 2015 at 20:28, Laurent Vivier <address@hidden> wrote:
> Orginal qemu-binfmt-conf.h is only able to write configuration
> into /proc/sys/fs/binfmt_misc, and the configuration is lost on reboot.
>
> This script can configure debian and systemd services to restore
> configuration on reboot. Moreover, it is able to manage binfmt
> credential and to configure the path of the interpreter.


> +i386_magic='\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00'
> +i386_mask='\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
> +i386_family=i386

Personally I think it would be nice to store these in
update-binfmts(8) style format files rather than directly
in the script. That way we separate data from the
implementation, and it's convenient if you want to do
something else with the data than what the script does.

-- PMM



reply via email to

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