Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
707c0874
Commit
707c0874
authored
May 02, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Move some more msr mangling into vmx_save_host_state()
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
33ed6329
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
drivers/kvm/vmx.c
drivers/kvm/vmx.c
+7
-7
No files found.
drivers/kvm/vmx.c
View file @
707c0874
...
@@ -290,6 +290,13 @@ static void vmx_save_host_state(struct kvm_vcpu *vcpu)
...
@@ -290,6 +290,13 @@ static void vmx_save_host_state(struct kvm_vcpu *vcpu)
vmcs_writel
(
HOST_FS_BASE
,
segment_base
(
hs
->
fs_sel
));
vmcs_writel
(
HOST_FS_BASE
,
segment_base
(
hs
->
fs_sel
));
vmcs_writel
(
HOST_GS_BASE
,
segment_base
(
hs
->
gs_sel
));
vmcs_writel
(
HOST_GS_BASE
,
segment_base
(
hs
->
gs_sel
));
#endif
#endif
#ifdef CONFIG_X86_64
if
(
is_long_mode
(
vcpu
))
{
save_msrs
(
vcpu
->
host_msrs
+
msr_offset_kernel_gs_base
,
1
);
load_msrs
(
vcpu
->
guest_msrs
,
NR_BAD_MSRS
);
}
#endif
}
}
static
void
vmx_load_host_state
(
struct
kvm_vcpu
*
vcpu
)
static
void
vmx_load_host_state
(
struct
kvm_vcpu
*
vcpu
)
...
@@ -1903,13 +1910,6 @@ preempted:
...
@@ -1903,13 +1910,6 @@ preempted:
if
(
vcpu
->
guest_debug
.
enabled
)
if
(
vcpu
->
guest_debug
.
enabled
)
kvm_guest_debug_pre
(
vcpu
);
kvm_guest_debug_pre
(
vcpu
);
#ifdef CONFIG_X86_64
if
(
is_long_mode
(
vcpu
))
{
save_msrs
(
vcpu
->
host_msrs
+
msr_offset_kernel_gs_base
,
1
);
load_msrs
(
vcpu
->
guest_msrs
,
NR_BAD_MSRS
);
}
#endif
again:
again:
vmx_save_host_state
(
vcpu
);
vmx_save_host_state
(
vcpu
);
kvm_load_guest_fpu
(
vcpu
);
kvm_load_guest_fpu
(
vcpu
);
...
...
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