mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-22 22:01:46 +00:00
[client] added rate limiting to failed kicks (guest not ready)
This commit is contained in:
parent
3899556cbf
commit
a4d8fd2237
1 changed files with 5 additions and 1 deletions
|
@ -218,7 +218,11 @@ int renderThread(void * unused)
|
|||
// we must take a copy of the header, both to let the guest advance and to
|
||||
// prevent the contained arguments being abused to overflow buffers
|
||||
memcpy(&header, state.shm, sizeof(struct KVMFRHeader));
|
||||
ivshmem_kick_irq(header.guestID, 0);
|
||||
if (!ivshmem_kick_irq(header.guestID, 0))
|
||||
{
|
||||
usleep(1000);
|
||||
continue;
|
||||
}
|
||||
|
||||
// check the header's magic and version are valid
|
||||
if (
|
||||
|
|
Loading…
Reference in a new issue