Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Linux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
E-EXK4 - Operating System Group
projects
Linux
Commits
1cc287dd
Commit
1cc287dd
authored
12 years ago
by
Marc Zyngier
Committed by
Christoffer Dall
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ARM: KVM: abstract fault decoding away
Signed-off-by:
Marc Zyngier
<
marc.zyngier@arm.com
>
parent
4926d445
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/arm/include/asm/kvm_emulate.h
+5
-0
5 additions, 0 deletions
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/mmu.c
+1
-1
1 addition, 1 deletion
arch/arm/kvm/mmu.c
with
6 additions
and
1 deletion
arch/arm/include/asm/kvm_emulate.h
+
5
−
0
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__ */
This diff is collapsed.
Click to expand it.
arch/arm/kvm/mmu.c
+
1
−
1
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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment