mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
multi-process: Forward PCI config space acceses to the remote process
The Proxy Object sends the PCI config space accesses as messages to the remote process over the communication channel Signed-off-by: Elena Ufimtseva <elena.ufimtseva@oracle.com> Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> Signed-off-by: John G Johnson <john.g.johnson@oracle.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: d3c94f4618813234655356c60e6f0d0362ff42d6.1611938319.git.jag.raman@oracle.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
e7b2c9eaa2
commit
11ab872588
4 changed files with 132 additions and 1 deletions
|
@ -207,7 +207,7 @@ uint64_t mpqemu_msg_send_and_await_reply(MPQemuMsg *msg, PCIProxyDev *pdev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
if (!mpqemu_msg_valid(&msg_reply)) {
|
||||
if (!mpqemu_msg_valid(&msg_reply) || msg_reply.cmd != MPQEMU_CMD_RET) {
|
||||
error_setg(errp, "ERROR: Invalid reply received for command %d",
|
||||
msg->cmd);
|
||||
return ret;
|
||||
|
@ -242,6 +242,12 @@ bool mpqemu_msg_valid(MPQemuMsg *msg)
|
|||
return false;
|
||||
}
|
||||
break;
|
||||
case MPQEMU_CMD_PCI_CFGWRITE:
|
||||
case MPQEMU_CMD_PCI_CFGREAD:
|
||||
if (msg->size != sizeof(PciConfDataMsg)) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue