hw/9pfs: Reset server state during TVERSION
commitc554919f74e5a79f15360c4c2f417003477634cf
authorDeepak C Shetty <deepakcs@linux.vnet.ibm.com>
Sun, 4 Dec 2011 17:05:28 +0000 (4 22:35 +0530)
committerJustin M. Forbes <jforbes@redhat.com>
Tue, 10 Jan 2012 15:26:50 +0000 (10 09:26 -0600)
tree91355c6c1a13b31d47f6cf3fdaaa449227462062
parent77a02621812952acfde887244f6f480de1b51f95
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