> Hi, > > > This will need spice-server <-> qemu/hw/qxl.c coordination, but I > > assume we > > will need some changes there anyway to set > > QXL_INTERRUPT_CLIENT_MONITORS_CONFIG, > > the qemu/hw/qxl.c function patching the MonitorsConfig into the > > romspace, > > and setting the irq in int_pending, could return whether or not the > > flag > > was > > set in int_mask for example. > > Yes, interface_client_monitors_config() can return whenever the guest > has masked the interrupt or not, and based on that spice-server can > send > the message to the agent or not.
ok, I'm missing something here. (and trying to catch up via Vol 3A is taking too long). I thought the order is: (1) qemu raises interrupt (2) qemu calls kvm ioctl (3) guest interrupt handler (4) guest clears interrupt by writing ~0 to qxl ram_header->int_mask. (5) qemu detects this next time it raises interrupt. so where does qemu/hw/qxl.c get a chance to see this masking *immediately* after it raises the interrupt, i.e. before (2) above, since otherwise there is a timeout here, you need to add a callback, it gets complicated, and then the unconditional two way sending looks much better. (I'm already on the same page with you on not needing guest capabilities at this point, even though for the future it did look like a good thing to have). > > cheers, > Gerd > > >