Skip to content

Conversation

@lorc
Copy link

@lorc lorc commented Dec 24, 2021

At least it compiles :)

Had no time to recreate setup with a new xenpcid, sorry

lorc added 5 commits December 24, 2021 02:41
This will prevent vulnerability, when other side sends object of
different type, which will be incorrectly interpolated by the code.

The most grave example is when other side send a number, and local
code interprets it as an pointer to a string while accessing ->u.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Add protocol for two more commands, one to make a PCI device
assignable, and other - to revert its state back.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Not all commands provide additional response fields, so make this
an optional parameter.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
Implement commands MAKE_ASSIGNABLE and REVERT_ASSIGNABLE in pcid in
the same way as they were implemented in libxl_pci.c

Replace original logic in libxl_pci.c by calling appropriate functions
from pcid.

This is quite huge patch, as lots of code were moved from lixbl_pci.c
to libxl_pcid.c.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

---

Not tested. Use at own risk.

Also, we need to reconsider storing old driver name in xenstore. As
pcid is lasting process, we can implement some map and store this
information in memory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant