/**
                 * Here, pi is used to:
                 * - Tell IOMMU to use legacy mode for this interrupt.
-                * - Retrieve ga_tag of prior interrupt remapping data.
                 */
-               pi.prev_ga_tag = 0;
                pi.is_guest_mode = false;
                ret = irq_set_vcpu_affinity(host_irq, &pi);
        }
 
        ir_data->cfg = irqd_cfg(data);
        pi_data->ir_data = ir_data;
 
-       pi_data->prev_ga_tag = ir_data->cached_ga_tag;
        if (pi_data->is_guest_mode) {
                ir_data->ga_root_ptr = (pi_data->base >> 12);
                ir_data->ga_vector = vcpu_pi_info->vector;
                ir_data->ga_tag = pi_data->ga_tag;
                ret = amd_iommu_activate_guest_mode(ir_data);
-               if (!ret)
-                       ir_data->cached_ga_tag = pi_data->ga_tag;
        } else {
                ret = amd_iommu_deactivate_guest_mode(ir_data);
-
-               /*
-                * This communicates the ga_tag back to the caller
-                * so that it can do all the necessary clean up.
-                */
-               if (!ret)
-                       ir_data->cached_ga_tag = 0;
        }
 
        return ret;