Coverage Report

Created: 2017-10-25 09:10

/root/src/xen/xen/arch/x86/pv/emulate.h
Line
Count
Source (jump to first uncovered line)
1
#ifndef __PV_EMULATE_H__
2
#define __PV_EMULATE_H__
3
4
#include <asm/x86_emulate.h>
5
6
int pv_emul_read_descriptor(unsigned int sel, const struct vcpu *v,
7
                            unsigned long *base, unsigned long *limit,
8
                            unsigned int *ar, bool insn_fetch);
9
10
void pv_emul_instruction_done(struct cpu_user_regs *regs, unsigned long rip);
11
12
static inline int pv_emul_is_mem_write(const struct x86_emulate_state *state,
13
                                       struct x86_emulate_ctxt *ctxt)
14
0
{
15
0
    return x86_insn_is_mem_write(state, ctxt) ? X86EMUL_OKAY
16
0
                                              : X86EMUL_UNHANDLEABLE;
17
0
}
Unexecuted instantiation: emulate.c:pv_emul_is_mem_write
Unexecuted instantiation: emul-gate-op.c:pv_emul_is_mem_write
Unexecuted instantiation: emul-inv-op.c:pv_emul_is_mem_write
Unexecuted instantiation: emul-priv-op.c:pv_emul_is_mem_write
Unexecuted instantiation: ro-page-fault.c:pv_emul_is_mem_write
18
19
#endif /* __PV_EMULATE_H__ */