x86/mmcfg: Rename pt_pci_init() and call it in acpi_mmcfg_init()
PATCH RESEND v3 1/2 x86/mmcfg: Rename pt_pci_init() and call it in acpi_mmcfg_init()
Given what pt_pci_init() actually does, rename it properly and move its declaration to pci.h, move the only call in acpi_mmcfg_init().
No functional change.
--- xen/arch/x86/setup.c | 2 -- xen/arch/x86/x86_64/mmconfig-shared.c | 2 ++ xen/drivers/passthrough/pci.c | 2 +- xen/include/xen/iommu.h | 2 -- xen/include/xen/pci.h | 1 + 5 files changed, 4 insertions(+), 5 deletions(-)
xen/arch/x86/setup.c +0 -2
@@ -1596,8 +1596,6 @@ void __init noreturn __start_xen(unsigned long mbi_p)local_irq_enable (); -pt_pci_init (); -vesa_mtrr_init ();acpi_mmcfg_init ();
xen/arch/x86/x86_64/mmconfig-shared.c +2 -0
@@ -402,6 +402,8 @@ void __init acpi_mmcfg_init(void) {bool_t valid =1 ; +pci_segments_init (); +/* MMCONFIG disabled */ if ((pci_probe &PCI_PROBE_MMCONF ) ==0 )return ;
xen/drivers/passthrough/pci.c +1 -1
@@ -126,7 +126,7 @@ static int pci_segments_iterate(return rc; } -void __init pt_pci_init (void ) +void __init pci_segments_init (void ) {radix_tree_init (&pci_segments);if ( !alloc_pseg (0 ) )
xen/include/xen/iommu.h +0 -2
@@ -92,8 +92,6 @@ struct domain_iommu {#define iommu_clear_feature (d, f) clear_bit(f, dom_iommu(d)->features)#ifdef CONFIG_HAS_PCI -void pt_pci_init (void ); -struct pirq ;int hvm_do_IRQ_dpci (struct domain *,struct pirq *);int pt_irq_create_bind (struct domain *,const struct xen_domctl_bind_pt_irq *);
xen/include/xen/pci.h +1 -0
@@ -143,6 +143,7 @@ struct pci_dev *pci_lock_domain_pdev(void setup_hwdom_pci_devices (struct domain *,int (*)(u8 devfn,struct pci_dev *));int pci_release_devices (struct domain *d); +void pci_segments_init (void );int pci_add_segment (u16 seg);const unsigned long *pci_get_ro_map (u16 seg); int pci_add_device(u16 seg, u8 bus, u8 devfn,
Signature · 6 lines
1.7.3 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 9 lines
Quoted 1 line
Quoted 1 line · On 22.08.18 at 11:16, <[email protected]> wrote:
Given what
pt_pci_init()actually does, rename it properly and move its declaration topci.h, move the only call inacpi_mmcfg_init().No functional change.
Signed-off-by Zhenzhong Duan <[email protected]>Tested-by Gopalasetty, Manoj <[email protected]>Acked-by Jan Beulich <[email protected]>
Please avoid needless re-sending of patches that have already gone in. Roger's remark regarding the questionable solitary v3 2/2 was correct, just that you should have dropped the 2/2 instead of re-sending an already applied patch.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Jan Beulich
Quoted 6 lines
Quoted 1 line
Quoted 1 line · On 22.08.18 at 11:16, <[email protected]> wrote:
Given what
pt_pci_init()actually does, rename it properly and move its declaration topci.h, move the only call inacpi_mmcfg_init().No functional change.
Quoted 8 lines
Quoted 3 lines
Signed-off-by Zhenzhong Duan <[email protected]>Tested-by Gopalasetty, Manoj <[email protected]>Acked-by Jan Beulich <[email protected]>Please avoid needless re-sending of patches that have already gone in. Roger's remark regarding the questionable solitary v3 2/2 was correct, just that you should have dropped the 2/2 instead of re-sending an already applied patch.
Ok.
To avoid endless resending, I'll follow that way next time.
Thanks
Zhenzhong
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel