Re: [PATCH 2/2 V2] kvm tools: Add virtio-9p

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

 



On Thu, May 19, 2011 at 3:02 AM, Sasha Levin <levinsasha928@xxxxxxxxx> wrote:
> Overview:
> 9p allows for simple RPC based resource sharing over
> different transports (in our case, virtio).
>
> This is the implementation of (most of) the original
> 9p2000 protocol, without the .u or the .l extensions.
>
> How to use:
> 1. Make sure kernel is compiled with:
>    CONFIG_NET_9P=y
>    CONFIG_NET_9P_VIRTIO=y
>    CONFIG_NET_9P_DEBUG=y (At least until code is stable)
>    CONFIG_9P_FS=y
>
> 2. Start KVM with '--virtio-9p <dirname>'. What happens now is that
> a virtio transport with the name 'kvm_9p' is created. The server side
> of the transport maps dirname to the root of the file system.
>
> 3. Within the guest, mount the fs:
> mount -t 9p -otrans=virtio kvm_9p <local_dir> -oversion=9p2000
> This will mount the 9p server to local_dir.
>
> Signed-off-by: Sasha Levin <levinsasha928@xxxxxxxxx>
> ---
...
> +struct p9_msg {
> +       u32                     size;
> +       u8                      cmd;
> +       u16                     tag;
> +       u8                      msg[0];
> +} __attribute__((aligned (8)));
> +

Hi Sasha, could you enlighten me, why do we need
__attribute__((aligned (8))) here at all? Probably packed are to be
used instead?
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux