]> git.proxmox.com Git - qemu.git/commit - hw/ppc/spapr_hcall.c
pseries: Remove unnecessary locking from PAPR hash table hcalls
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Sep 2012 17:42:30 +0000 (17:42 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 4 Oct 2012 13:54:18 +0000 (15:54 +0200)
commit35f9304d925a5423c51bd2c83a81fa3cc2b6e680
tree47c972d944fc2b043b27f300e776d53fa0709be4
parent5a1972c8472fafd519a68b689fdcaf33ec857945
pseries: Remove unnecessary locking from PAPR hash table hcalls

In the paravirtualized environment provided by PAPR, there is a standard
locking scheme so that hypercalls updating the hash page table from
different guest threads don't corrupt the haah table state.  We implement
this HVLOCK bit in out page table hypercalls.  However, it is not necessary
in our case, since the hypercalls all run in the qemu environment under the
big qemu lock.

Therefore, this patch removes the locking code.  This has the additional
advantage of freeing up a hash PTE bit which will be useful for migration
support.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_hcall.c