Comments

sg list contain more than one element and we need to use the right
element when we are doing the marshaling and unmarshaling of data.
This patch also abstract out the pack/unpack interface and make sure
we use one function for doing both.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
---
hw/virtio-9p-debug.c | 83 +++++++++++++++++++++++++++++++++----------------
hw/virtio-9p.c | 57 ++++++++++++++++++++--------------
hw/virtio-9p.h | 9 +++++
3 files changed, 98 insertions(+), 51 deletions(-)