diff options
author | Hans de Goede <hdegoede@redhat.com> | 2012-10-24 18:31:15 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-10-25 09:08:11 +0200 |
commit | 66a08cbe6ad1aebec8eecf58b3ba042e19dd1649 (patch) | |
tree | e0ca4155acb07af3a07ac07b58c8d142d1a77f5e /CODING_STYLE | |
parent | 5ad23e873c858292dc58b9296261365312b8f683 (diff) | |
download | qemu-66a08cbe6ad1aebec8eecf58b3ba042e19dd1649.zip qemu-66a08cbe6ad1aebec8eecf58b3ba042e19dd1649.tar.gz qemu-66a08cbe6ad1aebec8eecf58b3ba042e19dd1649.tar.bz2 |
uhci: Verify queue has not been changed by guest
According to the spec a guest can unlink a qh, and then as soon as frindex
has changed by 1 since the unlink, assume it is idle and re-use it. However
for various reasons, we cannot simply consider a qh as unlinked if we've not
seen it for 1 frame. This means that it is possible for a guest to re-use /
restart the queue while we still see its old state. This patch adds a safety
check for this, and "early" retires queues when they were changed by the guest.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'CODING_STYLE')
0 files changed, 0 insertions, 0 deletions