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
0d81f296
Commit
0d81f296
authored
Nov 21, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: MMU: Remove gva_to_hpa()
No longer used. Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
3f3e7124
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
10 deletions
+0
-10
drivers/kvm/kvm.h
drivers/kvm/kvm.h
+0
-1
drivers/kvm/mmu.c
drivers/kvm/mmu.c
+0
-9
No files found.
drivers/kvm/kvm.h
View file @
0d81f296
...
@@ -379,7 +379,6 @@ hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa);
...
@@ -379,7 +379,6 @@ hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa);
#define HPA_MSB ((sizeof(hpa_t) * 8) - 1)
#define HPA_MSB ((sizeof(hpa_t) * 8) - 1)
#define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB)
#define HPA_ERR_MASK ((hpa_t)1 << HPA_MSB)
static
inline
int
is_error_hpa
(
hpa_t
hpa
)
{
return
hpa
>>
HPA_MSB
;
}
static
inline
int
is_error_hpa
(
hpa_t
hpa
)
{
return
hpa
>>
HPA_MSB
;
}
hpa_t
gva_to_hpa
(
struct
kvm_vcpu
*
vcpu
,
gva_t
gva
);
struct
page
*
gva_to_page
(
struct
kvm_vcpu
*
vcpu
,
gva_t
gva
);
struct
page
*
gva_to_page
(
struct
kvm_vcpu
*
vcpu
,
gva_t
gva
);
extern
struct
page
*
bad_page
;
extern
struct
page
*
bad_page
;
...
...
drivers/kvm/mmu.c
View file @
0d81f296
...
@@ -881,15 +881,6 @@ hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa)
...
@@ -881,15 +881,6 @@ hpa_t gpa_to_hpa(struct kvm *kvm, gpa_t gpa)
return
hpa
;
return
hpa
;
}
}
hpa_t
gva_to_hpa
(
struct
kvm_vcpu
*
vcpu
,
gva_t
gva
)
{
gpa_t
gpa
=
vcpu
->
mmu
.
gva_to_gpa
(
vcpu
,
gva
);
if
(
gpa
==
UNMAPPED_GVA
)
return
UNMAPPED_GVA
;
return
gpa_to_hpa
(
vcpu
->
kvm
,
gpa
);
}
struct
page
*
gva_to_page
(
struct
kvm_vcpu
*
vcpu
,
gva_t
gva
)
struct
page
*
gva_to_page
(
struct
kvm_vcpu
*
vcpu
,
gva_t
gva
)
{
{
gpa_t
gpa
=
vcpu
->
mmu
.
gva_to_gpa
(
vcpu
,
gva
);
gpa_t
gpa
=
vcpu
->
mmu
.
gva_to_gpa
(
vcpu
,
gva
);
...
...
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