Hi,

On 11/09/2024 08:17, qiang xu wrote:
Hi Rlf,

Thank you for your reply. I solved the issue based on your suggestions. However, I've encountered another problem. As shown in the image below, I found that the MSI Capabilities of a PCIe device are being read incorrectly as '0xff'. When I don't enable the Root Cell, the readings with setpci are normal. However, when the Root Cell is enabled, the

Please don't use images, it's very hard to understand what's going on. Please describe your issue in a temporal flow.

device hangs, and after adding print statements, I found that reading

What means the device hangs? Does Jailhouse crash?

msi_registers.raw is abnormal. I have verified that mmcfg_addr is correct, but the read values are still incorrect. How should I proceed with further debugging?

Would you please share (as text attachments):
  - lspci -vvv (before enabling jailhouse)
  - jailhouse-config-collect yoursystem.tar
  - Jailhouse System Configuration as C Source

Why are you trying to change in PCI config space, what are you writing, and what would you expect?

The device should not hang and there should be no need for you to modify config space after enabling jailhouse, the device should continue working as before.

Thanks,
  Ralf


Screenshot from 2024-09-11 14-02-51.pngScreenshot from 2024-09-11 14-03-23.pngScreenshot from 2024-09-11 13-55-20.png

Regards,
Qiang
On Wednesday, September 4, 2024 at 6:51:03 PM UTC+8 Ralf Ramsauer wrote:

    Hi,

    On 04/09/2024 05:35, qiang xu wrote:
     > Hi Jailhouse Team,
     >
     >     I am trying to run Jailhouse on a real physical
    machine(x86).When I
     > run jailhouse enable xx.cell. I encounter the following error.
    I'm not
     > sure what is happening. Can you help me?
     >
     > 'Initializing Jailhouse hypervisor v0.12 on CPU 2
     > Code location: 0xfffffffff0000050
     > Using x2APIC
     > Page pool usage after early setup: mem 48/974, remap 0/131072
     > Initializing processors:
     >  CPU 2... (APIC ID 4) OK
     >  CPU 3... (APIC ID 6) OK
     >  CPU 1... (APIC ID 2) OK
     >  CPU 0... (APIC ID 0) OK
     > Initializing unit: VT-d
     > DMAR unit @0xfed90000/0x1000
     > DMAR unit @0xfed91000/0x1000
     > Reserving 120 interrupt(s) for device f0:1f.0 at index 0
     > Initializing unit: IOAPIC
     > Initializing unit: Cache Allocation Technology
     > Initializing unit: PCI
     > Adding PCI device 00:00.0 to cell "RootCell"
     > Adding PCI device 00:01.0 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:01.0 at index 120
     > Adding PCI device 00:02.0 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:02.0 at index 121
     > Adding PCI device 00:14.0 to cell "RootCell"
     > Reserving 8 interrupt(s) for device 00:14.0 at index 122
     > Adding PCI device 00:14.2 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:14.2 at index 130
     > Adding PCI device 00:16.0 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:16.0 at index 131
     > Adding PCI device 00:17.0 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:17.0 at index 132
     > Adding PCI device 00:1c.0 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:1c.0 at index 133
     > Adding PCI device 00:1f.0 to cell "RootCell"
     > Adding PCI device 00:1f.2 to cell "RootCell"
     > Adding PCI device 00:1f.3 to cell "RootCell"
     > Reserving 1 interrupt(s) for device 00:1f.3 at index 134
     > Adding PCI device 00:1f.4 to cell "RootCell"
     > Adding PCI device 01:00.0 to cell "RootCell"
     > Reserving 8 interrupt(s) for device 01:00.0 at index 135
     > Adding PCI device 01:00.1 to cell "RootCell"
     > Reserving 4 interrupt(s) for device 01:00.1 at index 143
     > Adding PCI device 01:00.2 to cell "RootCell"
     > Reserving 3 interrupt(s) for device 01:00.2 at index 147
     > Adding PCI device 01:03.0 to cell "RootCell"
     > Reserving 16 interrupt(s) for device 01:03.0 at index 150
     > FATAL: Jailhouse triggered exception #14
     > Error code: 9
     > Physical CPU ID: 4
     > RIP: 0xfffffffff000b250 RSP: 0xfffffffff023ef50 FLAGS: 10093
     > CR2: 0xffffff800400b000

    would you please disassemble your hypervisor binary with objdump, and
    see what routine executed behind 0xfffffffff000b250?

    Rlf

     > Stopping CPU 2 (Cell: "RootCell")'
     >
     > Regards,
     > Qiang
     >
     > --
     > You received this message because you are subscribed to the Google
     > Groups "Jailhouse" group.
     > To unsubscribe from this group and stop receiving emails from it,
    send
     > an email to [email protected]
     > <mailto:[email protected]>.
     > To view this discussion on the web visit
     >
    
https://groups.google.com/d/msgid/jailhouse-dev/CACFR-a7pkHV775KSG-Jn_Yn70mWSZ66jcU4-RRKm%2B5WSxvr3-A%40mail.gmail.com
 
<https://groups.google.com/d/msgid/jailhouse-dev/CACFR-a7pkHV775KSG-Jn_Yn70mWSZ66jcU4-RRKm%2B5WSxvr3-A%40mail.gmail.com>
 
<https://groups.google.com/d/msgid/jailhouse-dev/CACFR-a7pkHV775KSG-Jn_Yn70mWSZ66jcU4-RRKm%2B5WSxvr3-A%40mail.gmail.com?utm_medium=email&utm_source=footer
 
<https://groups.google.com/d/msgid/jailhouse-dev/CACFR-a7pkHV775KSG-Jn_Yn70mWSZ66jcU4-RRKm%2B5WSxvr3-A%40mail.gmail.com?utm_medium=email&utm_source=footer>>.

--
You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/e934ce47-a4c0-435e-95f8-204ff6b2e76an%40googlegroups.com <https://groups.google.com/d/msgid/jailhouse-dev/e934ce47-a4c0-435e-95f8-204ff6b2e76an%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Ralf Ramsauer
PGP: 0xC85252CC

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/f9f09503-807d-4393-8757-9da544d82a39%40vmexit.de.

Reply via email to