[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v10 39/59] i386/xen: add monitor commands to test event injec
From: |
David Woodhouse |
Subject: |
Re: [PATCH v10 39/59] i386/xen: add monitor commands to test event injection |
Date: |
Fri, 10 Feb 2023 15:05:18 +0000 |
User-agent: |
Evolution 3.44.4-0ubuntu1 |
On Fri, 2023-02-10 at 14:54 +0000, Paul Durrant wrote:
>
> Given that this patch only provides a command to inject an event on a
> specific port, I think it's be useful to have the target field report
> the type of a VIRQ. PV drivers often hook VIRQ_DEBUG for dumping debug
> info, so knowing which of the VIRQ ports
It's there in type_val, Wary of overengineering I hadn't actually
translated it to strings but frankly if you don't know VIRQ_DEBUG is 1
you don't deserve to play...
(qemu) xen-event-list
port 1: vcpu: 0 interdomain(qemu:2)
port 2: vcpu: 0 virq(0)
port 3: vcpu: 0 ipi
port 4: vcpu: 0 ipi
port 5: vcpu: 0 virq(1)
port 6: vcpu: 0 ipi
port 7: vcpu: 0 ipi MASKED
port 8: vcpu: 1 virq(0)
port 9: vcpu: 1 ipi
port 10: vcpu: 1 ipi
port 11: vcpu: 1 virq(1)
port 12: vcpu: 1 ipi
port 13: vcpu: 1 ipi PENDING MASKED
port 14: vcpu: 1 pirq(16)
port 15: vcpu: 1 interdomain(qemu:3)
port 16: vcpu: 0 pirq(22)
port 17: vcpu: 1 pirq(18)
port 18: vcpu: 0 pirq(17)
port 19: vcpu: 1 pirq(20)
port 20: vcpu: 0 pirq(19)
(qemu) xen-event-inject 5
Delivered port 5
(qemu) [ 26.555560]
[ 26.555560] vcpu 0
[ 26.555560]
[ 26.555592] 0: masked=0 pending=0 event_sel 0000000000000000
[ 26.555592]
[ 26.556526] 1: masked=0 pending=0 event_sel 0000000000000000
[ 26.556526]
[ 26.557537]
[ 26.557537] pending:
[ 26.557537]
[ 26.558514] 0000000000000000
[ 26.559242] 0000000000000000
...
smime.p7s
Description: S/MIME cryptographic signature
- Re: [PATCH v10 51/59] hw/xen: Add xen_xenstore device for xenstore emulation, (continued)
- [PATCH v10 47/59] i386/xen: handle PV timer hypercalls, David Woodhouse, 2023/02/01
- [PATCH v10 02/59] xen: add CONFIG_XEN_BUS and CONFIG_XEN_EMU options for Xen emulation, David Woodhouse, 2023/02/01
- [PATCH v10 19/59] i386/xen: implement HYPERVISOR_hvm_op, David Woodhouse, 2023/02/01
- [PATCH v10 41/59] hw/xen: Support HVM_PARAM_CALLBACK_TYPE_PCI_INTX callback, David Woodhouse, 2023/02/01
- [PATCH v10 39/59] i386/xen: add monitor commands to test event injection, David Woodhouse, 2023/02/01
- [PATCH v10 57/59] hw/xen: Support MSI mapping to PIRQ, David Woodhouse, 2023/02/01
- [PATCH v10 01/59] include: import Xen public headers to hw/xen/interface, David Woodhouse, 2023/02/01
- [PATCH v10 50/59] hw/xen: Add backend implementation of interdomain event channel support, David Woodhouse, 2023/02/01
- [PATCH v10 45/59] i386/xen: Implement HYPERVISOR_grant_table_op and GNTTABOP_[gs]et_verson, David Woodhouse, 2023/02/01
- [PATCH v10 48/59] i386/xen: Reserve Xen special pages for console, xenstore rings, David Woodhouse, 2023/02/01