mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 05:57:33 +00:00
minor fix on get_ptdev_info
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
parent
c451f2e4fa
commit
429302c72a
@ -967,7 +967,7 @@ int get_ptdev_info(char *str, int str_max)
|
|||||||
uint64_t dest;
|
uint64_t dest;
|
||||||
bool lvl_tm;
|
bool lvl_tm;
|
||||||
int pin, vpin, bdf, vbdf;
|
int pin, vpin, bdf, vbdf;
|
||||||
struct list_head *pos = NULL, *vm_pos;
|
struct list_head *pos, *vm_pos;
|
||||||
struct vm *vm;
|
struct vm *vm;
|
||||||
|
|
||||||
len = snprintf(str, size,
|
len = snprintf(str, size,
|
||||||
@ -977,7 +977,7 @@ int get_ptdev_info(char *str, int str_max)
|
|||||||
|
|
||||||
spinlock_obtain(&vm_list_lock);
|
spinlock_obtain(&vm_list_lock);
|
||||||
list_for_each(vm_pos, &vm_list) {
|
list_for_each(vm_pos, &vm_list) {
|
||||||
vm = list_entry(pos, struct vm, list);
|
vm = list_entry(vm_pos, struct vm, list);
|
||||||
spinlock_obtain(&vm->ptdev_lock);
|
spinlock_obtain(&vm->ptdev_lock);
|
||||||
list_for_each(pos, &vm->ptdev_list) {
|
list_for_each(pos, &vm->ptdev_list) {
|
||||||
entry = list_entry(pos, struct ptdev_remapping_info,
|
entry = list_entry(pos, struct ptdev_remapping_info,
|
||||||
|
Loading…
Reference in New Issue
Block a user