qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v3 1/6] Use IO port for qemu<->guest BIOS commun


From: Blue Swirl
Subject: Re: [Qemu-devel] [PATCH v3 1/6] Use IO port for qemu<->guest BIOS communication.
Date: Fri, 29 Aug 2008 22:26:33 +0300

On 8/29/08, Gleb Natapov <address@hidden> wrote:
> On Thu, Aug 28, 2008 at 09:04:11PM +0300, Blue Swirl wrote:
>  > On 8/28/08, Gleb Natapov <address@hidden> wrote:
>  > >  +    fw_cfg_add(fw_cfg, FW_CFG_ID, (uint8_t *)&bios_cfg_id,
>  > >  +               sizeof(bios_cfg_id));
>  >
>  > On second thought, this is in host byte order, which is not a good idea.
>  >
>
> Is there some function to convert from host byte order to target byte
>  order?

Nothing generic like cpu_to_target.

Because the only read access method is byte by byte, we could use
little endian order and as a side benefit, the numbers would be
automatically zero extended as needed.




reply via email to

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