-
Notifications
You must be signed in to change notification settings - Fork 41
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
Conversation
Signed-off-by: Yang Qian <yang.qian@citrix.com>
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 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] |
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.
Do we use rpc
? Can we just use rpcty
instead, as done in other modules or itwill break lots of other code?
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.
I think that this is shared with the xenops_interface, which is still on camlp4.
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.
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
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.
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
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.
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 |
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.
Why not result_p
in line with all the other declarations?
This is for after rebase master then changes the interface to PPX.
Signed-off-by: Yang Qian yang.qian@citrix.com