* [PATCH RFC v1 04/18] iommu/hyperv: don't setup IRQ remapping when running as root [not found] <20200914112802.80611-1-wei.liu@kernel.org> @ 2020-09-14 11:27 ` Wei Liu 2020-09-18 9:12 ` Joerg Roedel 0 siblings, 1 reply; 2+ messages in thread From: Wei Liu @ 2020-09-14 11:27 UTC (permalink / raw) To: Linux on Hyper-V List Cc: Wei Liu, K. Y. Srinivasan, Stephen Hemminger, Haiyang Zhang, virtualization, Linux Kernel List, Nuno Das Neves, open list:IOMMU DRIVERS, Sunil Muthuswamy, Michael Kelley, Vineeth Pillai The IOMMU code needs more work. We're sure for now the IRQ remapping hooks are not applicable when Linux is the root. Signed-off-by: Wei Liu <wei.liu@kernel.org> --- drivers/iommu/hyperv-iommu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/hyperv-iommu.c b/drivers/iommu/hyperv-iommu.c index 8919c1c70b68..4da684ab292c 100644 --- a/drivers/iommu/hyperv-iommu.c +++ b/drivers/iommu/hyperv-iommu.c @@ -20,6 +20,7 @@ #include <asm/io_apic.h> #include <asm/irq_remapping.h> #include <asm/hypervisor.h> +#include <asm/mshyperv.h> #include "irq_remapping.h" @@ -143,7 +144,7 @@ static int __init hyperv_prepare_irq_remapping(void) int i; if (!hypervisor_is_type(X86_HYPER_MS_HYPERV) || - !x2apic_supported()) + !x2apic_supported() || hv_root_partition) return -ENODEV; fn = irq_domain_alloc_named_id_fwnode("HYPERV-IR", 0); -- 2.20.1 _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH RFC v1 04/18] iommu/hyperv: don't setup IRQ remapping when running as root 2020-09-14 11:27 ` [PATCH RFC v1 04/18] iommu/hyperv: don't setup IRQ remapping when running as root Wei Liu @ 2020-09-18 9:12 ` Joerg Roedel 0 siblings, 0 replies; 2+ messages in thread From: Joerg Roedel @ 2020-09-18 9:12 UTC (permalink / raw) To: Wei Liu Cc: Linux on Hyper-V List, K. Y. Srinivasan, Stephen Hemminger, Nuno Das Neves, Haiyang Zhang, Linux Kernel List, Michael Kelley, open list:IOMMU DRIVERS, Sunil Muthuswamy, virtualization, Vineeth Pillai On Mon, Sep 14, 2020 at 11:27:48AM +0000, Wei Liu wrote: > The IOMMU code needs more work. We're sure for now the IRQ remapping > hooks are not applicable when Linux is the root. > > Signed-off-by: Wei Liu <wei.liu@kernel.org> > --- > drivers/iommu/hyperv-iommu.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Acked-by: Joerg Roedel <jroedel@suse.de> _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-18 9:12 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <20200914112802.80611-1-wei.liu@kernel.org> 2020-09-14 11:27 ` [PATCH RFC v1 04/18] iommu/hyperv: don't setup IRQ remapping when running as root Wei Liu 2020-09-18 9:12 ` Joerg Roedel
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).