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
d0adf747
Commit
d0adf747
authored
12 years ago
by
Marc Zyngier
Committed by
Christoffer Dall
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ARM: KVM: abstract HSR_SRT_{MASK,SHIFT} away
Signed-off-by:
Marc Zyngier
<
marc.zyngier@arm.com
>
parent
7c511b88
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/mmio.c
+1
-1
1 addition, 1 deletion
arch/arm/kvm/mmio.c
with
6 additions
and
1 deletion
arch/arm/include/asm/kvm_emulate.h
+
5
−
0
View file @
d0adf747
...
@@ -105,4 +105,9 @@ static inline bool kvm_vcpu_dabt_issext(struct kvm_vcpu *vcpu)
...
@@ -105,4 +105,9 @@ static inline bool kvm_vcpu_dabt_issext(struct kvm_vcpu *vcpu)
return
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_SSE
;
return
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_SSE
;
}
}
static
inline
int
kvm_vcpu_dabt_get_rd
(
struct
kvm_vcpu
*
vcpu
)
{
return
(
kvm_vcpu_get_hsr
(
vcpu
)
&
HSR_SRT_MASK
)
>>
HSR_SRT_SHIFT
;
}
#endif
/* __ARM_KVM_EMULATE_H__ */
#endif
/* __ARM_KVM_EMULATE_H__ */
This diff is collapsed.
Click to expand it.
arch/arm/kvm/mmio.c
+
1
−
1
View file @
d0adf747
...
@@ -94,7 +94,7 @@ static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
...
@@ -94,7 +94,7 @@ static int decode_hsr(struct kvm_vcpu *vcpu, phys_addr_t fault_ipa,
is_write
=
kvm_vcpu_dabt_iswrite
(
vcpu
);
is_write
=
kvm_vcpu_dabt_iswrite
(
vcpu
);
sign_extend
=
kvm_vcpu_dabt_issext
(
vcpu
);
sign_extend
=
kvm_vcpu_dabt_issext
(
vcpu
);
rt
=
(
kvm_vcpu_get_
hs
r
(
vcpu
)
&
HSR_SRT_MASK
)
>>
HSR_SRT_SHIFT
;
rt
=
kvm_vcpu_
dabt_
get_r
d
(
vcpu
);
if
(
kvm_vcpu_reg_is_pc
(
vcpu
,
rt
))
{
if
(
kvm_vcpu_reg_is_pc
(
vcpu
,
rt
))
{
/* IO memory trying to read/write pc */
/* IO memory trying to read/write pc */
...
...
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