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
fcd34108
Commit
fcd34108
authored
Mar 21, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Remove unused and write-only variables
Trivial cleanup. Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
6da63cf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
4 deletions
+0
-4
drivers/kvm/kvm_svm.h
drivers/kvm/kvm_svm.h
+0
-2
drivers/kvm/svm.c
drivers/kvm/svm.c
+0
-2
No files found.
drivers/kvm/kvm_svm.h
View file @
fcd34108
...
...
@@ -28,8 +28,6 @@ struct vcpu_svm {
struct
svm_cpu_data
*
svm_data
;
uint64_t
asid_generation
;
unsigned
long
cr0
;
unsigned
long
cr4
;
unsigned
long
db_regs
[
NUM_DB_REGS
];
u64
next_rip
;
...
...
drivers/kvm/svm.c
View file @
fcd34108
...
...
@@ -576,7 +576,6 @@ static int svm_create_vcpu(struct kvm_vcpu *vcpu)
vcpu
->
svm
->
vmcb
=
page_address
(
page
);
memset
(
vcpu
->
svm
->
vmcb
,
0
,
PAGE_SIZE
);
vcpu
->
svm
->
vmcb_pa
=
page_to_pfn
(
page
)
<<
PAGE_SHIFT
;
vcpu
->
svm
->
cr0
=
0x00000010
;
vcpu
->
svm
->
asid_generation
=
0
;
memset
(
vcpu
->
svm
->
db_regs
,
0
,
sizeof
(
vcpu
->
svm
->
db_regs
));
init_vmcb
(
vcpu
->
svm
->
vmcb
);
...
...
@@ -736,7 +735,6 @@ static void svm_set_cr0(struct kvm_vcpu *vcpu, unsigned long cr0)
}
}
#endif
vcpu
->
svm
->
cr0
=
cr0
;
vcpu
->
cr0
=
cr0
;
cr0
|=
CR0_PG_MASK
|
CR0_WP_MASK
;
cr0
&=
~
(
CR0_CD_MASK
|
CR0_NW_MASK
);
...
...
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