instr_emul: remove unnecessary params in __decode_instruction
removed unused vcpu & gla params Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
parent
570aef648a
commit
0d6218f980
|
@ -2135,8 +2135,7 @@ decode_moffset(struct vie *vie)
|
|||
}
|
||||
|
||||
int
|
||||
__decode_instruction(__unused struct vcpu *vcpu, __unused uint64_t gla,
|
||||
enum vm_cpu_mode cpu_mode, int cs_d, struct vie *vie)
|
||||
__decode_instruction(enum vm_cpu_mode cpu_mode, int cs_d, struct vie *vie)
|
||||
{
|
||||
if (decode_prefixes(vie, cpu_mode, cs_d))
|
||||
return -1;
|
||||
|
|
|
@ -86,8 +86,8 @@ int vie_init(struct vie *vie, struct vcpu *vcpu);
|
|||
* in VIE_INVALID_GLA instead.
|
||||
*/
|
||||
#define VIE_INVALID_GLA (1UL << 63) /* a non-canonical address */
|
||||
int __decode_instruction(struct vcpu *vcpu, uint64_t gla,
|
||||
enum vm_cpu_mode cpu_mode, int csd, struct vie *vie);
|
||||
int
|
||||
__decode_instruction(enum vm_cpu_mode cpu_mode, int cs_d, struct vie *vie);
|
||||
|
||||
int emulate_instruction(struct vcpu *vcpu);
|
||||
int decode_instruction(struct vcpu *vcpu);
|
||||
|
|
|
@ -331,8 +331,8 @@ int decode_instruction(struct vcpu *vcpu)
|
|||
csar = exec_vmread(VMX_GUEST_CS_ATTR);
|
||||
cpu_mode = get_vcpu_mode(vcpu);
|
||||
|
||||
retval = __decode_instruction(vcpu, guest_rip_gva,
|
||||
cpu_mode, SEG_DESC_DEF32(csar), &emul_cnx->vie);
|
||||
retval = __decode_instruction(cpu_mode, SEG_DESC_DEF32(csar),
|
||||
&emul_cnx->vie);
|
||||
|
||||
if (retval != 0) {
|
||||
pr_err("decode instruction failed @ 0x%016llx:",
|
||||
|
|
Loading…
Reference in New Issue