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
bc009e43
Commit
bc009e43
authored
May 26, 2015
by
Paolo Bonzini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: remove unused argument from mark_page_dirty_in_slot
Signed-off-by:
Paolo Bonzini
<
pbonzini@redhat.com
>
parent
e453aa0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
virt/kvm/kvm_main.c
virt/kvm/kvm_main.c
+5
-7
No files found.
virt/kvm/kvm_main.c
View file @
bc009e43
...
...
@@ -103,8 +103,7 @@ static void hardware_disable_all(void);
static
void
kvm_io_bus_destroy
(
struct
kvm_io_bus
*
bus
);
static
void
kvm_release_pfn_dirty
(
pfn_t
pfn
);
static
void
mark_page_dirty_in_slot
(
struct
kvm
*
kvm
,
struct
kvm_memory_slot
*
memslot
,
gfn_t
gfn
);
static
void
mark_page_dirty_in_slot
(
struct
kvm_memory_slot
*
memslot
,
gfn_t
gfn
);
__visible
bool
kvm_rebooting
;
EXPORT_SYMBOL_GPL
(
kvm_rebooting
);
...
...
@@ -1591,7 +1590,7 @@ int kvm_write_guest_page(struct kvm *kvm, gfn_t gfn, const void *data,
r
=
__copy_to_user
((
void
__user
*
)
addr
+
offset
,
data
,
len
);
if
(
r
)
return
-
EFAULT
;
mark_page_dirty_in_slot
(
kvm
,
memslot
,
gfn
);
mark_page_dirty_in_slot
(
memslot
,
gfn
);
return
0
;
}
EXPORT_SYMBOL_GPL
(
kvm_write_guest_page
);
...
...
@@ -1674,7 +1673,7 @@ int kvm_write_guest_cached(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
r
=
__copy_to_user
((
void
__user
*
)
ghc
->
hva
,
data
,
len
);
if
(
r
)
return
-
EFAULT
;
mark_page_dirty_in_slot
(
kvm
,
ghc
->
memslot
,
ghc
->
gpa
>>
PAGE_SHIFT
);
mark_page_dirty_in_slot
(
ghc
->
memslot
,
ghc
->
gpa
>>
PAGE_SHIFT
);
return
0
;
}
...
...
@@ -1732,8 +1731,7 @@ int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len)
}
EXPORT_SYMBOL_GPL
(
kvm_clear_guest
);
static
void
mark_page_dirty_in_slot
(
struct
kvm
*
kvm
,
struct
kvm_memory_slot
*
memslot
,
static
void
mark_page_dirty_in_slot
(
struct
kvm_memory_slot
*
memslot
,
gfn_t
gfn
)
{
if
(
memslot
&&
memslot
->
dirty_bitmap
)
{
...
...
@@ -1748,7 +1746,7 @@ void mark_page_dirty(struct kvm *kvm, gfn_t gfn)
struct
kvm_memory_slot
*
memslot
;
memslot
=
gfn_to_memslot
(
kvm
,
gfn
);
mark_page_dirty_in_slot
(
kvm
,
memslot
,
gfn
);
mark_page_dirty_in_slot
(
memslot
,
gfn
);
}
EXPORT_SYMBOL_GPL
(
mark_page_dirty
);
...
...
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