ptdev: change the ptdev_lock from per-vm to global

this patch is a preparation for changing ptdev remapping entry from
virtual to physical based, it changes the ptdev_lock from per-vm to
global, as entries based on physical mode are global resource.

Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Jason Chen CJ
2018-03-26 03:45:53 +08:00
committed by Jack Ren
parent 9d02932ec4
commit 70d4dbace7
3 changed files with 31 additions and 43 deletions

View File

@@ -167,7 +167,6 @@ int create_vm(struct vm_description *vm_desc, struct vm **rtn_vm)
/* Populate return VM handle */
*rtn_vm = vm;
ptdev_vm_init(vm);
vm->sw.req_buf = 0;
status = set_vcpuid_entries(vm);