> + qemu_unregister_reset(ehci_reset, s); We should hook up reset via DeviceClass->reset then (xhci already does it this way) and drop the qemu_register_reset() calls.
Then qemu will register and unregister the reset handler automatically for us. cheers, Gerd