commit | 3c7969ccb569968a79fab3729075751bc8fc2f78 | [log] [tgz] |
---|---|---|
author | Amit Shah <amit.shah@redhat.com> | Thu Nov 26 11:25:38 2009 +0530 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Wed Feb 24 14:22:55 2010 +1030 |
tree | c5f9d8362d8b448961cb0bf355a445e14646dec4 | |
parent | 2030fa496d74b49220308eaccf656e2338019cfd [diff] |
virtio: console: Ensure only one process can have a port open at a time Add a guest_connected field that ensures only one process can have a port open at a time. This also ensures we don't have a race when we later add support for dropping buffers when closing the char dev and buffer caching is turned off for the particular port. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>