Re: [PATCH 08/26] KVM: PPC: Add PV guest critical sections

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

 




Am 27.06.2010 um 12:59 schrieb Avi Kivity <avi@xxxxxxxxxx>:

On 06/27/2010 01:33 PM, Alexander Graf wrote:
Or inc/dec...


Uh - huh? How would that help?

inc shared->critical   # disable interrupts

There is no opcode in the ppc isa that acts on momery without involving a register.

An inc would be:

ld rX, A(0)
addi rX, rX, 1
std rX, A(0)

Alex

--
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