hv: Hibernate DCP in hv_init

DCP will otherwise not be useable from the guest system.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2022-03-29 13:14:36 +02:00 committed by Hector Martin
parent 87a849287a
commit d05f92b18a

View file

@ -3,6 +3,7 @@
#include "hv.h" #include "hv.h"
#include "assert.h" #include "assert.h"
#include "cpu_regs.h" #include "cpu_regs.h"
#include "display.h"
#include "gxf.h" #include "gxf.h"
#include "memory.h" #include "memory.h"
#include "pcie.h" #include "pcie.h"
@ -49,6 +50,7 @@ static struct hv_secondary_info_t hv_secondary_info;
void hv_init(void) void hv_init(void)
{ {
pcie_shutdown(); pcie_shutdown();
display_shutdown();
// reenable hpm interrupts for the guest for unused iodevs // reenable hpm interrupts for the guest for unused iodevs
usb_hpm_restore_irqs(0); usb_hpm_restore_irqs(0);
smp_start_secondaries(); smp_start_secondaries();