Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
1cc287dd
Commit
1cc287dd
authored
Sep 18, 2012
by
Marc Zyngier
Committed by
Christoffer Dall
Mar 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: KVM: abstract fault decoding away
Signed-off-by:
Marc Zyngier
<
marc.zyngier@arm.com
>
parent
4926d445
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
arch/arm/include/asm/kvm_emulate.h
arch/arm/include/asm/kvm_emulate.h
+5
-0
arch/arm/kvm/mmu.c
arch/arm/kvm/mmu.c
+1
-1
No files found.
arch/arm/include/asm/kvm_emulate.h
View file @
1cc287dd
...
@@ -147,4 +147,9 @@ static inline u8 kvm_vcpu_trap_get_class(struct kvm_vcpu *vcpu)
...
@@ -147,4 +147,9 @@ static inline u8 kvm_vcpu_trap_get_class(struct kvm_vcpu *vcpu)
return
kvm_vcpu_get_hsr
(
vcpu
)
>>
HSR_EC_SHIFT
;
return
kvm_vcpu_get_hsr
(
vcpu
)
>>
HSR_EC_SHIFT
;
}
}
static
inline
u8
kvm_vcpu_trap_get_fault
(
struct
kvm_vcpu
*
vcpu
)
{
return
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_FSC_TYPE
;
}
#endif
/* __ARM_KVM_EMULATE_H__ */
#endif
/* __ARM_KVM_EMULATE_H__ */
arch/arm/kvm/mmu.c
View file @
1cc287dd
...
@@ -601,7 +601,7 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run)
...
@@ -601,7 +601,7 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run)
kvm_vcpu_get_hfar
(
vcpu
),
fault_ipa
);
kvm_vcpu_get_hfar
(
vcpu
),
fault_ipa
);
/* Check the stage-2 fault is trans. fault or write fault */
/* Check the stage-2 fault is trans. fault or write fault */
fault_status
=
(
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_FSC_TYPE
);
fault_status
=
kvm_vcpu_trap_get_fault
(
vcpu
);
if
(
fault_status
!=
FSC_FAULT
&&
fault_status
!=
FSC_PERM
)
{
if
(
fault_status
!=
FSC_FAULT
&&
fault_status
!=
FSC_PERM
)
{
kvm_err
(
"Unsupported fault status: EC=%#lx DFCS=%#lx
\n
"
,
kvm_err
(
"Unsupported fault status: EC=%#lx DFCS=%#lx
\n
"
,
hsr_ec
,
fault_status
);
hsr_ec
,
fault_status
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment