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

Port sriov interface to ppx #211

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

minli1
Copy link
Member

@minli1 minli1 commented Mar 7, 2018

This is for after rebase master then changes the interface to PPX.
Signed-off-by: Yang Qian yang.qian@citrix.com

Signed-off-by: Yang Qian <yang.qian@citrix.com>
@cheng-z cheng-z requested review from mseri and robhoes March 8, 2018 10:26
Copy link
Collaborator

@mseri mseri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good, just a minor nitpick on a name and a question

@@ -6,7 +6,7 @@ type address = {
dev: int;
fn: int;
}
[@@deriving sexp, rpc]
[@@deriving sexp, rpc, rpcty]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we use rpc? Can we just use rpcty instead, as done in other modules or itwill break lots of other code?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that this is shared with the xenops_interface, which is still on camlp4.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non of the three things above is related to camlp4 though. I am expecting that removing rpc fails something, but I think it's worth double checking and see if we can reduce the autogenerated stuff if not needed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without it, xcpi-idl fails to build:

File "xen/xenops_types.ml", line 19, characters 2-224:
Error: Unbound value rpc_of_address
Hint: Did you mean typ_of_address?
make: *** [Makefile:7: release] Error 1

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good, let's merge then

let make_vf_config =
let pci_address_p = Param.mk ~description:["pci address"] Xcp_pci.address in
let vf_info_p = Param.mk ~description:["vf info"] sriov_pci_t in
let result_t = Param.mk ~description:["SR-IOV make vf configuration result"] config_result in
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not result_p in line with all the other declarations?

@mseri mseri merged commit ecc5538 into xapi-project:sr-iov Mar 8, 2018
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.

None yet

4 participants