Re: [PATCH 0/2] Introduce panic hypercall

Avi Kivity
2011-06-21T09:07:33Z

On 06/21/2011 12:03 PM, Gleb Natapov wrote:> >>
> > >Something like steal time, but for watchdog. But this become complicated fast.
> > >Watchdog emulation will have to move into kernel for starter.
> >
> > Why? You can use a performance counter from userspace.
> >
> Heh, haven't thought about such way of implementing watchdog device.
> But the same question again: what impact on performance constantly running
> guest under perf is?

Same answer.

> Doesn't running guest under perf involve a lot of
> NMIs (and hence vmexists)?

The NMI rate is proportional to how you program the counter. If you
program it to exit every 2 billion cycles, that's what you'll get.

--
error compiling committee.c: too many arguments to function