History

iommu/amd: Enable ga_log_intr when enabling guest_mode

IRTE[GALogIntr] bit should set when enabling guest_mode, which enables IOMMU to generate entry in GALog when IRTE[IsRun] is not set, and send an interrupt to notify IOMMU driver.

Suravee Suthikulpanit committed 9 years ago

Commit efe6f241 parent a46cdc41 file · +1 −0Browse files

Unified · Split

drivers/iommu/amd_iommu.c+1−0
@@ -4452,6 +4452,7 @@ static int amd_ir_set_vcpu_affinity(struct irq_data *data, void *vcpu_info) · 4451 unmodified lines
44524452 /* Setting */
44534453 irte->hi.fields.ga_root_ptr = (pi_data->base >> 12);
44544454 irte->hi.fields.vector = vcpu_pi_info->vector;
4455+ irte->lo.fields_vapic.ga_log_intr = 1;
44554456 irte->lo.fields_vapic.guest_mode = 1;
44564457 irte->lo.fields_vapic.ga_tag = pi_data->ga_tag;
44574458

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t