-
Notifications
You must be signed in to change notification settings - Fork 3
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
add/remove VDPA devices #15
add/remove VDPA devices #15
Conversation
@amorenoz please take a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR needs rebasing plus a bit of moving things around between the different commits and ordering them so that every commit builds.
I messed up while rebasing from master. I'll cherry-pick my changes and tidy up the commit messages |
dc8d2a7
to
473de32
Compare
@amorenoz Please review it again, I fixed the rebase issue, commit history and few minor changes you requested |
I've fixed an issue with golangci-lint. Please rebase to see if tests pass. |
d7351b2
to
e0abd50
Compare
This change allows the user (cli) to create a new VDPA device CLI command: kvdpa-cli add [mgmtdev] [dev] mgmtdev: the VDPA management device (e.g. pci/0000:65:00.2) dev: the VDPA device (e.g. vdpa1) Signed-off-by: Leonardo Milleri <lmilleri@redhat.com>
This change allows the user (cli) to delete a VDPA device CLI command: kvdpa-cli del [dev] dev: the VDPA device (e.g. vdpa1) Signed-off-by: Leonardo Milleri <lmilleri@redhat.com>
function name: GetVdpaDevicesByPciAddress arguments: pciAddress string return values: []VdpaDevice, error Signed-off-by: Leonardo Milleri <lmilleri@redhat.com>
e0abd50
to
b605bb5
Compare
Rebased from master and rewritten git history to make it cleaner. Please review the changes |
Thanks @lmilleri |
/lgtm |
This PR extends the govdpa library by adding the following capabilities:
kvdpa-cli: Add support for new VdpaDevice
This change allows the user (cli) to create a new VDPA device
CLI command: kvdpa-cli add [mgmtdev] [dev]
mgmtdev: the VDPA management device (e.g. pci/0000:65:00.2)
dev: the VDPA device (e.g. vdpa1)
kvdpa-cli: Delete support for VdpaDevice
This change allows the user (cli) to delete a VDPA device
CLI command: kvdpa-cli del [dev]
dev: the VDPA device (e.g. vdpa1)
Added function for returning the VdpaDevice objects for a given pciAddress
function name: GetVdpaDevicesByPciAddress
arguments: pciAddress string
return values: []VdpaDevice, error