Since I stumbled across this while looking for further constification
opportunities, also correct the insn_fetch() related comment.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
static int hvmemul_write_segment(
enum x86_segment seg,
- struct segment_register *reg,
+ const struct segment_register *reg,
struct x86_emulate_ctxt *ctxt)
{
struct hvm_emulate_ctxt *hvmemul_ctxt =
/*
* insn_fetch: Emulate fetch from instruction byte stream.
- * Parameters are same as for 'read'. @seg is always x86_seg_cs.
+ * Except for @bytes, all parameters are the same as for 'read'.
+ * @bytes: Access length (0 <= @bytes < 16, with zero meaning
+ * "validate address only").
+ * @seg is always x86_seg_cs.
*/
int (*insn_fetch)(
enum x86_segment seg,
*/
int (*write_segment)(
enum x86_segment seg,
- struct segment_register *reg,
+ const struct segment_register *reg,
struct x86_emulate_ctxt *ctxt);
/*