Revert "Revert "dm: set PMU_PT flag for CPU ...""

This reverts commit 6750d5a277.

the bug is root caused and fixed, so recovery the original patch.

Tracked-On: #6966
Signed-off-by: Minggui Cao <minggui.cao@intel.com>
This commit is contained in:
Minggui Cao 2022-03-15 22:34:56 +08:00 committed by acrnsi-robot
parent 05ca1d7641
commit 1bc2921c27
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ vm_create(const char *name, uint64_t req_buf, int *vcpu_num)
create_vm.vm_flag |= GUEST_FLAG_LAPIC_PASSTHROUGH;
create_vm.vm_flag |= GUEST_FLAG_RT;
create_vm.vm_flag |= GUEST_FLAG_IO_COMPLETION_POLLING;
create_vm.vm_flag |= GUEST_FLAG_PMU_PASSTHROUGH;
} else {
create_vm.vm_flag &= (~GUEST_FLAG_LAPIC_PASSTHROUGH);
create_vm.vm_flag &= (~GUEST_FLAG_IO_COMPLETION_POLLING);