|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver
On 23/10/07 12:35, "Jun Kamada" <kama@xxxxxxxxxxxxxx> wrote:
>> Another question about the original patches: did you test that a 64-bit
>> backend can communicate with 32-bit frontend (and vice versa)? Either you
>> need to make sure that all the shared-memory structures defined in vscsiif.h
>> compile identically for 32-bit and 64-bit mode, or you need to detect the
>> frontend's 'bitness' in scsiback and optionally do 32-to-64 or 64-to-32
>> conversion. I think it's obvious which is less hassle. ;-)
>
> I suppose that the VBD uses the later method. (Is it right?) However,
> the later method requires 'optimize level of frontend on compile time'
> in addition to the 'bitness'. If the frontend is optimized for space,
> members in structure are packed. On the other hand, if the frontend is
> optimized for speed, each members are aligned on word boundary. (padding
> will be inserted.)
> How do you think about this?
The layout of structures is part of the C ABI on the target system:
optimising compilation for space cannot change that (without explicit
pragmas or attributes being added to the code).
Anyway, the right answer is to ensure that your structures compile the same
whether compiled with 32-bit or 64-bit gcc. Check the structure sizes,
fields sizes and field offsets.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Jun Kamada
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Keir Fraser
- RE: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, James Harper
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Keir Fraser
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Jun Kamada
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Keir Fraser
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Jun Kamada
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver,
Keir Fraser <=
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Jun Kamada
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Keir Fraser
- Re: [Xen-devel] [PATCH 0/5] pvSCSI (SCSI pass through) driver, Jun Kamada
- [Xen-devel] [PATCH 4/6] pvSCSI (SCSI pass through) driver, Jun Kamada
- [Xen-devel] [PATCH 0/6] pvSCSI (SCSI pass through) driver, Jun Kamada
- [Xen-devel] Re: [PATCH 0/6] pvSCSI (SCSI pass through) driver, Keir Fraser
- [Xen-devel] Re: [PATCH 0/6] pvSCSI (SCSI pass through) driver, Jun Kamada
- [Xen-devel] Re: [PATCH 0/6] pvSCSI (SCSI pass through) driver, Keir Fraser
- [Xen-devel] Re: [PATCH 0/6] pvSCSI (SCSI pass through) driver, Jun Kamada
- [Xen-devel] Re: [PATCH 0/6] pvSCSI (SCSI pass through) driver, Keir Fraser
|
|
|
|
|