[PATCH 2/3] qemu: Prevent two threshold events when it was registered with index