Hi,

> I guess a more general approach to the problem would be to have
> a (hopefully easy) way to say "if this has been going on for too
> long then arrange to defer continued processing of it til later,
> and for now resume the guest".

Doable today, by simply applying some limit and if we hit it schedule a
timer to continue later.

uhci emulation does this, but it's basically no extra work there as usb
emulation is timer based _anyway_.

> That's too big a can of worms for
> this patch, though. (And for something that's only used in TCG
> emulation we care much less about malicious guests than for devices
> that can be used with KVM.)

Agree, given the use case this isn't critical by any means.

cheers,
  Gerd

Reply via email to