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
4b02d6da
Commit
4b02d6da
authored
May 06, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: MMU: Simplify kvm_mmu_free_page() a tiny bit
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
2dc7094b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/kvm/mmu.c
drivers/kvm/mmu.c
+4
-6
No files found.
drivers/kvm/mmu.c
View file @
4b02d6da
...
...
@@ -455,12 +455,10 @@ static int is_empty_shadow_page(hpa_t page_hpa)
}
#endif
static
void
kvm_mmu_free_page
(
struct
kvm_vcpu
*
vcpu
,
hpa_t
page_hpa
)
static
void
kvm_mmu_free_page
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_mmu_page
*
page_head
)
{
struct
kvm_mmu_page
*
page_head
=
page_header
(
page_hpa
);
ASSERT
(
is_empty_shadow_page
(
page_hpa
));
page_head
->
page_hpa
=
page_hpa
;
ASSERT
(
is_empty_shadow_page
(
page_head
->
page_hpa
));
list_move
(
&
page_head
->
link
,
&
vcpu
->
free_pages
);
++
vcpu
->
kvm
->
n_free_mmu_pages
;
}
...
...
@@ -690,7 +688,7 @@ static void kvm_mmu_zap_page(struct kvm_vcpu *vcpu,
kvm_mmu_page_unlink_children
(
vcpu
,
page
);
if
(
!
page
->
root_count
)
{
hlist_del
(
&
page
->
hash_link
);
kvm_mmu_free_page
(
vcpu
,
page
->
page_hpa
);
kvm_mmu_free_page
(
vcpu
,
page
);
}
else
list_move
(
&
page
->
link
,
&
vcpu
->
kvm
->
active_mmu_pages
);
}
...
...
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