* [PATCH] microvm: Enable hotplug of pcie
@ 2021-04-27 13:04 suyuheng
2021-04-27 22:36 ` Michael S. Tsirkin
0 siblings, 1 reply; 3+ messages in thread
From: suyuheng @ 2021-04-27 13:04 UTC (permalink / raw)
To: pbonzini, richard.henderson, ehabkost, mst, marcel.apfelbaum
Cc: Yuheng Su, qemu-devel
From: Yuheng Su <suyuheng@bytedance.com>
Signed-off-by: Yuheng Su <suyuheng@bytedance.com>
---
hw/i386/acpi-microvm.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/hw/i386/acpi-microvm.c b/hw/i386/acpi-microvm.c
index ccd3303aac..4f32bf512f 100644
--- a/hw/i386/acpi-microvm.c
+++ b/hw/i386/acpi-microvm.c
@@ -26,6 +26,7 @@
#include "exec/memory.h"
#include "hw/acpi/acpi.h"
+#include "hw/acpi/pci.h"
#include "hw/acpi/aml-build.h"
#include "hw/acpi/bios-linker-loader.h"
#include "hw/acpi/generic_event_device.h"
@@ -209,6 +210,16 @@ static void acpi_build_microvm(AcpiBuildTables *tables,
ACPI_DEVICE_IF(x86ms->acpi_dev), x86ms->oem_id,
x86ms->oem_table_id);
+ acpi_add_table(table_offsets, tables_blob);
+ {
+ AcpiMcfgInfo mcfg = {
+ .base = mms->gpex.ecam.base,
+ .size = mms->gpex.ecam.size,
+ };
+ build_mcfg(tables_blob, tables->linker, &mcfg, x86ms->oem_id,
+ x86ms->oem_table_id);
+ }
+
xsdt = tables_blob->len;
build_xsdt(tables_blob, tables->linker, table_offsets, x86ms->oem_id,
x86ms->oem_table_id);
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] microvm: Enable hotplug of pcie
2021-04-27 13:04 [PATCH] microvm: Enable hotplug of pcie suyuheng
@ 2021-04-27 22:36 ` Michael S. Tsirkin
0 siblings, 0 replies; 3+ messages in thread
From: Michael S. Tsirkin @ 2021-04-27 22:36 UTC (permalink / raw)
To: suyuheng; +Cc: ehabkost, richard.henderson, qemu-devel, pbonzini, Yuheng Su
On Tue, Apr 27, 2021 at 09:04:27PM +0800, suyuheng wrote:
> From: Yuheng Su <suyuheng@bytedance.com>
>
> Signed-off-by: Yuheng Su <suyuheng@bytedance.com>
seems to be extended config space as opposed to hotplug ...
> ---
> hw/i386/acpi-microvm.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/hw/i386/acpi-microvm.c b/hw/i386/acpi-microvm.c
> index ccd3303aac..4f32bf512f 100644
> --- a/hw/i386/acpi-microvm.c
> +++ b/hw/i386/acpi-microvm.c
> @@ -26,6 +26,7 @@
>
> #include "exec/memory.h"
> #include "hw/acpi/acpi.h"
> +#include "hw/acpi/pci.h"
> #include "hw/acpi/aml-build.h"
> #include "hw/acpi/bios-linker-loader.h"
> #include "hw/acpi/generic_event_device.h"
> @@ -209,6 +210,16 @@ static void acpi_build_microvm(AcpiBuildTables *tables,
> ACPI_DEVICE_IF(x86ms->acpi_dev), x86ms->oem_id,
> x86ms->oem_table_id);
>
> + acpi_add_table(table_offsets, tables_blob);
> + {
> + AcpiMcfgInfo mcfg = {
> + .base = mms->gpex.ecam.base,
> + .size = mms->gpex.ecam.size,
> + };
> + build_mcfg(tables_blob, tables->linker, &mcfg, x86ms->oem_id,
> + x86ms->oem_table_id);
> + }
> +
> xsdt = tables_blob->len;
> build_xsdt(tables_blob, tables->linker, table_offsets, x86ms->oem_id,
> x86ms->oem_table_id);
> --
> 2.11.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] microvm: Enable hotplug of pcie
@ 2021-04-27 14:39 GipsyU
0 siblings, 0 replies; 3+ messages in thread
From: GipsyU @ 2021-04-27 14:39 UTC (permalink / raw)
To: pbonzini, richard.henderson, ehabkost, mst, marcel.apfelbaum
Cc: Yuheng Su, qemu-devel
From: Yuheng Su <suyuheng@bytedance.com>
Signed-off-by: Yuheng Su <suyuheng@bytedance.com>
---
hw/i386/acpi-microvm.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/hw/i386/acpi-microvm.c b/hw/i386/acpi-microvm.c
index ccd3303aac..4f32bf512f 100644
--- a/hw/i386/acpi-microvm.c
+++ b/hw/i386/acpi-microvm.c
@@ -26,6 +26,7 @@
#include "exec/memory.h"
#include "hw/acpi/acpi.h"
+#include "hw/acpi/pci.h"
#include "hw/acpi/aml-build.h"
#include "hw/acpi/bios-linker-loader.h"
#include "hw/acpi/generic_event_device.h"
@@ -209,6 +210,16 @@ static void acpi_build_microvm(AcpiBuildTables *tables,
ACPI_DEVICE_IF(x86ms->acpi_dev), x86ms->oem_id,
x86ms->oem_table_id);
+ acpi_add_table(table_offsets, tables_blob);
+ {
+ AcpiMcfgInfo mcfg = {
+ .base = mms->gpex.ecam.base,
+ .size = mms->gpex.ecam.size,
+ };
+ build_mcfg(tables_blob, tables->linker, &mcfg, x86ms->oem_id,
+ x86ms->oem_table_id);
+ }
+
xsdt = tables_blob->len;
build_xsdt(tables_blob, tables->linker, table_offsets, x86ms->oem_id,
x86ms->oem_table_id);
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-27 22:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 13:04 [PATCH] microvm: Enable hotplug of pcie suyuheng
2021-04-27 22:36 ` Michael S. Tsirkin
2021-04-27 14:39 GipsyU
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.