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
nexedi
linux
Commits
d6c69ee9
Commit
d6c69ee9
authored
Apr 25, 2007
by
Yaozu Dong
Committed by
Avi Kivity
May 03, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: MMU: Avoid heavy ASSERT at non debug mode.
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
4d56c8a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
drivers/kvm/mmu.c
drivers/kvm/mmu.c
+6
-0
No files found.
drivers/kvm/mmu.c
View file @
d6c69ee9
...
...
@@ -52,11 +52,15 @@ static void kvm_mmu_audit(struct kvm_vcpu *vcpu, const char *msg) {}
static
int
dbg
=
1
;
#endif
#ifndef MMU_DEBUG
#define ASSERT(x) do { } while (0)
#else
#define ASSERT(x) \
if (!(x)) { \
printk(KERN_WARNING "assertion failed %s:%d: %s\n", \
__FILE__, __LINE__, #x); \
}
#endif
#define PT64_PT_BITS 9
#define PT64_ENT_PER_PAGE (1 << PT64_PT_BITS)
...
...
@@ -434,6 +438,7 @@ static void rmap_write_protect(struct kvm_vcpu *vcpu, u64 gfn)
}
}
#ifdef MMU_DEBUG
static
int
is_empty_shadow_page
(
hpa_t
page_hpa
)
{
u64
*
pos
;
...
...
@@ -448,6 +453,7 @@ static int is_empty_shadow_page(hpa_t page_hpa)
}
return
1
;
}
#endif
static
void
kvm_mmu_free_page
(
struct
kvm_vcpu
*
vcpu
,
hpa_t
page_hpa
)
{
...
...
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