09 Feb, 2008
1 commit
-
Sometimes simple attributes might need to return an error, e.g. for
acquiring a mutex interruptibly. In fact we have that situation in
spufs already which is the original user of the simple attributes. This
patch merged the temporarily forked attributes in spufs back into the
main ones and allows to return errors.[akpm@linux-foundation.org: build fix]
Signed-off-by: Christoph Hellwig
Cc:
Cc: Arnd Bergmann
Cc: Greg KH
Cc: Al Viro
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
31 Jan, 2008
5 commits
-
Convert the synchronization of the shadow handling to a separate mmu_lock
spinlock.Also guard fetch() by mmap_sem in read-mode to protect against alias
and memslot changes.Signed-off-by: Marcelo Tosatti
Signed-off-by: Avi Kivity -
In preparation for a mmu spinlock, add kvm_read_guest_atomic()
and use it in fetch() and prefetch_page().Signed-off-by: Marcelo Tosatti
Signed-off-by: Avi Kivity -
Do not hold kvm->lock mutex across the entire pagefault code,
only acquire it in places where it is necessary, such as mmu
hash list, active list, rmap and parent pte handling.Allow concurrent guest walkers by switching walk_addr() to use
mmap_sem in read-mode.And get rid of the lockless __gfn_to_page.
[avi: move kvm_mmu_pte_write() locking inside the function]
[avi: add locking for real mode]
[avi: fix cmpxchg locking]Signed-off-by: Marcelo Tosatti
Signed-off-by: Avi Kivity -
Move ioapic code to common, since IA64 also needs it.
Signed-off-by: Zhang Xiantao
Signed-off-by: Avi Kivity -
Signed-off-by: Avi Kivity