[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 8/9] x86_iommu/amd: Add interrupt remap suppo
From: |
Singh, Brijesh |
Subject: |
Re: [Qemu-devel] [PATCH v3 8/9] x86_iommu/amd: Add interrupt remap support when VAPIC is enabled |
Date: |
Thu, 27 Sep 2018 12:36:45 +0000 |
On 9/25/18 1:57 AM, Peter Xu wrote:
> On Fri, Sep 21, 2018 at 02:25:42PM +0000, Singh, Brijesh wrote:
>
> [...]
>
>> +static int amdvi_int_remap_ga(AMDVIState *iommu,
>> + MSIMessage *origin,
>> + MSIMessage *translated,
>> + uint64_t *dte,
>> + X86IOMMUIrq *irq,
>> + uint16_t sid)
>> +{
>> + int ret;
>> + struct irte_ga irte;
>> +
>> + /* get interrupt remapping table */
>> + ret = amdvi_get_irte_ga(iommu, origin, dte, &irte, sid);
>> + if (ret < 0) {
>> + return ret;
>> + }
>> +
>> + if (!irte.lo.fields_remap.valid) {
>> + trace_amdvi_ir_target_abort("RemapEn is disabled");
>> + return -AMDVI_IR_TARGET_ABORT;
>> + }
>> +
>> + if (irte.lo.fields_remap.guest_mode) {
>> + trace_amdvi_ir_err("guest mode is not zero");
> Just to let you know that you mentioned about replacing some of the
> traces with error_report_once() but I didn't see any in this latest
> version. Again that's optional so traces would be fine, but I'm still
> pointing that out in case you wanted that and you're posting a wrong
> tree.
Hmm, let me go back to my patches again, i thought I used
error_report_once() in few places but it seems those are lost somewhere.
thanks for pointing this out.
> Otherwise it looks good to me.
>
> Thanks,
>
- [Qemu-devel] [PATCH v3 4/9] x86_iommu/amd: make the address space naming consistent with intel-iommu, (continued)
- [Qemu-devel] [PATCH v3 4/9] x86_iommu/amd: make the address space naming consistent with intel-iommu, Singh, Brijesh, 2018/09/21
- [Qemu-devel] [PATCH v3 1/9] x86_iommu: move the kernel-irqchip check in common code, Singh, Brijesh, 2018/09/21
- [Qemu-devel] [PATCH v3 5/9] x86_iommu/amd: Prepare for interrupt remap support, Singh, Brijesh, 2018/09/21
- [Qemu-devel] [PATCH v3 6/9] x86_iommu/amd: Add interrupt remap support when VAPIC is not enabled, Singh, Brijesh, 2018/09/21
- [Qemu-devel] [PATCH v3 7/9] i386: acpi: add IVHD device entry for IOAPIC, Singh, Brijesh, 2018/09/21
- [Qemu-devel] [PATCH v3 9/9] x86_iommu/amd: Enable Guest virtual APIC support, Singh, Brijesh, 2018/09/21
- Message not available