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

Re: [Xen-devel] [PATCH 08 of 16 RFC] blktap3: Introduce message types and structures

On Wed, 2012-10-24 at 18:02 +0100, Thanos Makatos wrote:
> The main difference over the the XEN version

what do you mean by "the XEN version"? Is there an existing version of
this header somewhere?

>  is the addition of the stats
> structure (used for retrieving stats from a running tapdisk), and the addition
> of the tapdisk_message_blkif struct, which is required for the user-space
> counterpart of blktap/blkback to communicate with tapdisk.

Am I correct that the interface defined here is one which is private
between the tapdisk processes and the supplied control tools, abstracted
away via libblktapctl?

> +/**
> + * Retrieves the human-readable representation of the type of the message.
> + */
> +static inline char *tapdisk_message_name(enum tapdisk_message_id id)
> +{
> +    switch (id) {

Would a static lookup table be nicer?


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.