Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 372087
b: refs/heads/master
c: c088f8f
h: refs/heads/master
i:
  372085: 5cc2096
  372083: feb96a2
  372079: f7e2b60
v: v3
  • Loading branch information
Christoffer Dall committed Mar 6, 2013
1 parent d8279b9 commit c0b010e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3414bbfff98b2524c0b2cdc4d0a78153ebf4f823
refs/heads/master: c088f8f0088decf0ce172a6bb4a6f5742cc54c15
5 changes: 5 additions & 0 deletions trunk/arch/arm/include/asm/kvm_emulate.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,9 @@ static inline u8 kvm_vcpu_trap_get_fault(struct kvm_vcpu *vcpu)
return kvm_vcpu_get_hsr(vcpu) & HSR_FSC_TYPE;
}

static inline u32 kvm_vcpu_hvc_get_imm(struct kvm_vcpu *vcpu)
{
return kvm_vcpu_get_hsr(vcpu) & HSR_HVC_IMM_MASK;
}

#endif /* __ARM_KVM_EMULATE_H__ */
5 changes: 5 additions & 0 deletions trunk/arch/arm/kvm/handle_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <asm/kvm_mmu.h>
#include <asm/kvm_psci.h>

#include "trace.h"

typedef int (*exit_handle_fn)(struct kvm_vcpu *, struct kvm_run *);

static int handle_svc_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run)
Expand All @@ -35,6 +37,9 @@ static int handle_svc_hyp(struct kvm_vcpu *vcpu, struct kvm_run *run)

static int handle_hvc(struct kvm_vcpu *vcpu, struct kvm_run *run)
{
trace_kvm_hvc(*vcpu_pc(vcpu), *vcpu_reg(vcpu, 0),
kvm_vcpu_hvc_get_imm(vcpu));

if (kvm_psci_call(vcpu))
return 1;

Expand Down

0 comments on commit c0b010e

Please sign in to comment.