Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NOT TESTED! Implement make_assignable and revert_assignable commands #14

Open
wants to merge 5 commits into
base: pcid_rework_v1
Choose a base branch
from

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 <[email protected]>
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 <[email protected]>
Not all commands provide additional response fields, so make this
an optional parameter.

Signed-off-by: Volodymyr Babchuk <[email protected]>
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 <[email protected]>

---

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