]> git.proxmox.com Git - qemu.git/commit
hw/9pfs: Reset server state during TVERSION
authorDeepak C Shetty <deepakcs@linux.vnet.ibm.com>
Sun, 4 Dec 2011 17:05:28 +0000 (22:35 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 4 Dec 2011 17:05:28 +0000 (22:35 +0530)
commitb41e2992b279bf13c2a424082e64d8722546b013
treec1479090d61a1bc61a8f1f3e786f5e0279f198f3
parente9a0152ba182c5ce9929ee60f83a37b61a1d5195
hw/9pfs: Reset server state during TVERSION

As per the 9p rfc, during TVERSION its necessary to clean all the active
fids, so that we start the session from a clean state. Its also needed in
scenarios where the guest is booting off 9p, and boot fails, and client
restarts, without any knowledge of the past, it will issue a TVERSION again
so this ensures that we always start from a clean state.

Signed-off-by: Deepak C Shetty <deepakcs@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p.c