[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/3] x86/hvm: introduce functions for HVMOP_get/set_param allowance checks
>>> Paul Durrant <paul.durrant@xxxxxxxxxx> 05/01/15 4:05 PM >>> >+ /* The following parameters cannot be set by the guest. */ Didn't you agree that "cannot" isn't the right term here? >+ /* The following parameters can only be changed once. */ >+ switch ( a->index ) >+ { >+ case HVM_PARAM_VIRIDIAN: >+ case HVM_PARAM_IOREQ_SERVER_PFN: >+ case HVM_PARAM_NR_IOREQ_SERVER_PAGES: >+ if (value != 0 && a->value != value) There are still blanks missing here. >case HVM_PARAM_IDENT_PT: >- /* Not reflexive, as we must domain_pause(). */ And I continue to think that retaining these comments would be useful for documentation purposes (even when switching to white lists - they should then remain explicit case labels grouped with the "default" one). And taking into consideration the comment change requested at the very top (which changes again in the 3rd patch), there could then perhaps be a distinction between "can't", "shouldn't", and "mustn't" (again solely serving doc purposes). Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |