Re: [PATCH 5/5] KVM: PPC: booke: Improve timer register emulation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 07, 2011 at 12:41:35PM +0200, Alexander Graf wrote:
> Yes, but why can't we do this in the vcpu thread's context so we only
> ever have a single instance accessing the vcpu struct?  It makes a lot
> of things a lot easier.

Why?  We don't do it for external interrupts.  It would complicate
locking, not simplify it -- we'd need to defer the execution to some
context which can block, and then kick the guest out of guest mode, and
make sure it doesn't reenter before we get the mutex...

> And for the watchdog, we don't have to set the bit unless it's clean,
> right?

Not sure what you mean by "clean".  We always set the bit when the timer
expires.

Likewise for the decrementer.

-Scott

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux