Skip to content

Commit 65f3751

Browse files
lifeixwenlingz
authored andcommitted
hv: pci: add hide pci devices configuration for apl-up2
Other Platforms are not added for now. Tracked-On: #3465 Signed-off-by: Li Fei1 <fei1.li@intel.com>
1 parent 3239cb0 commit 65f3751

File tree

16 files changed

+37
-3
lines changed

16 files changed

+37
-3
lines changed

hypervisor/arch/x86/configs/apl-mrb/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <board.h>
88
#include <vtd.h>
9+
#include <pci.h>
910

1011
#ifndef CONFIG_ACPI_PARSE_ENABLED
1112
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
@@ -15,3 +16,4 @@
1516
struct dmar_info plat_dmar_info;
1617
struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
1718
const struct cpu_state_table board_cpu_state_tbl;
19+
const union pci_bdf plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM];

hypervisor/arch/x86/configs/apl-mrb/misc_cfg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,6 @@
4141
"cma=64M@0- " \
4242
"panic_print=0x1f"
4343

44+
#define MAX_HIDDEN_PDEVS_NUM 0U
45+
4446
#endif /* MISC_CFG_H */

hypervisor/arch/x86/configs/apl-up2/board.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <board.h>
88
#include <msr.h>
99
#include <vtd.h>
10+
#include <pci.h>
1011

1112
#ifndef CONFIG_ACPI_PARSE_ENABLED
1213
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
@@ -35,3 +36,11 @@ struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM] = {
3536
};
3637

3738
const struct cpu_state_table board_cpu_state_tbl;
39+
40+
const union pci_bdf plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM] = {
41+
{
42+
.bits.b = 0x0,
43+
.bits.d = 0xd,
44+
.bits.f = 0x0,
45+
},
46+
};

hypervisor/arch/x86/configs/apl-up2/misc_cfg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@
3737
"i915.enable_guc=0x02 " \
3838
"cma=64M@0- "
3939

40+
#define MAX_HIDDEN_PDEVS_NUM 1U
41+
4042
#endif /* MISC_CFG_H */

hypervisor/arch/x86/configs/dnv-cb2/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <board.h>
88
#include <vtd.h>
9+
#include <pci.h>
910

1011
#ifndef CONFIG_ACPI_PARSE_ENABLED
1112
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
@@ -15,3 +16,4 @@
1516
struct dmar_info plat_dmar_info;
1617
struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
1718
const struct cpu_state_table board_cpu_state_tbl;
19+
const union pci_bdf plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM];

hypervisor/arch/x86/configs/dnv-cb2/misc_cfg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,6 @@
2626
#define SOS_BOOTARGS_DIFF ""
2727
#endif
2828

29+
#define MAX_HIDDEN_PDEVS_NUM 0U
30+
2931
#endif /* MISC_CFG_H */

hypervisor/arch/x86/configs/generic/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <board.h>
88
#include <vtd.h>
9+
#include <pci.h>
910

1011
#ifndef CONFIG_ACPI_PARSE_ENABLED
1112
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
@@ -15,3 +16,4 @@
1516
struct dmar_info plat_dmar_info;
1617
struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
1718
const struct cpu_state_table board_cpu_state_tbl;
19+
const union pci_bdf plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM];

hypervisor/arch/x86/configs/generic/misc_cfg.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,6 @@
2727
#define SOS_BOOTARGS_DIFF ""
2828
#endif
2929

30+
#define MAX_HIDDEN_PDEVS_NUM 0U
31+
3032
#endif /* MISC_CFG_H */

hypervisor/arch/x86/configs/icl-rvp/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <board.h>
88
#include <vtd.h>
9+
#include <pci.h>
910

1011
#ifndef CONFIG_ACPI_PARSE_ENABLED
1112
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
@@ -15,3 +16,4 @@
1516
struct dmar_info plat_dmar_info;
1617
struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
1718
const struct cpu_state_table board_cpu_state_tbl;
19+
const union pci_bdf plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM];

hypervisor/arch/x86/configs/nuc6cayh/board.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <board.h>
88
#include <vtd.h>
9+
#include <pci.h>
910

1011
#ifndef CONFIG_ACPI_PARSE_ENABLED
1112
#error "DMAR info is not available, please set ACPI_PARSE_ENABLED to y in Kconfig. \
@@ -15,3 +16,4 @@
1516
struct dmar_info plat_dmar_info;
1617
struct platform_clos_info platform_clos_array[MAX_PLATFORM_CLOS_NUM];
1718
const struct cpu_state_table board_cpu_state_tbl;
19+
const union pci_bdf plat_hidden_pdevs[MAX_HIDDEN_PDEVS_NUM];

0 commit comments

Comments
 (0)