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
05e0c8c3
Commit
05e0c8c3
authored
Apr 30, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Unindent some code
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
e6adf283
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
29 deletions
+29
-29
drivers/kvm/vmx.c
drivers/kvm/vmx.c
+29
-29
No files found.
drivers/kvm/vmx.c
View file @
05e0c8c3
...
...
@@ -1998,39 +1998,39 @@ again:
asm
(
"mov %0, %%ds; mov %0, %%es"
:
:
"r"
(
__USER_DS
));
if
(
fail
)
{
if
(
unlikely
(
fail
)
)
{
kvm_run
->
exit_reason
=
KVM_EXIT_FAIL_ENTRY
;
kvm_run
->
fail_entry
.
hardware_entry_failure_reason
=
vmcs_read32
(
VM_INSTRUCTION_ERROR
);
r
=
0
;
}
else
{
/*
* Profile KVM exit RIPs:
*/
if
(
unlikely
(
prof_on
==
KVM_PROFILING
))
profile_hit
(
KVM_PROFILING
,
(
void
*
)
vmcs_readl
(
GUEST_RIP
));
vcpu
->
launched
=
1
;
r
=
kvm_handle_exit
(
kvm_run
,
vcpu
)
;
if
(
r
>
0
)
{
/* Give scheduler a change to reschedule. */
if
(
signal_pending
(
current
))
{
r
=
-
EINTR
;
kvm_run
->
exit_reason
=
KVM_EXIT_
INTR
;
++
vcpu
->
stat
.
signal_exits
;
goto
out
;
}
if
(
dm_request_for_irq_injection
(
vcpu
,
kvm_run
))
{
r
=
-
EINTR
;
kvm_run
->
exit_reason
=
KVM_EXIT_
INTR
;
++
vcpu
->
stat
.
request_irq_exits
;
goto
out
;
}
if
(
!
need_resched
())
{
++
vcpu
->
stat
.
light_exits
;
goto
again
;
}
goto
out
;
}
/*
* Profile KVM exit RIPs:
*/
if
(
unlikely
(
prof_on
==
KVM_PROFILING
))
profile_hit
(
KVM_PROFILING
,
(
void
*
)
vmcs_readl
(
GUEST_RIP
));
vcpu
->
launched
=
1
;
r
=
kvm_handle_exit
(
kvm_run
,
vcpu
);
if
(
r
>
0
)
{
/* Give scheduler a change to reschedule. */
if
(
signal_pending
(
current
))
{
r
=
-
E
INTR
;
kvm_run
->
exit_reason
=
KVM_EXIT_INTR
;
++
vcpu
->
stat
.
signal_exits
;
goto
out
;
}
if
(
dm_request_for_irq_injection
(
vcpu
,
kvm_run
))
{
r
=
-
E
INTR
;
kvm_run
->
exit_reason
=
KVM_EXIT_INTR
;
++
vcpu
->
stat
.
request_irq_exits
;
goto
out
;
}
if
(
!
need_resched
())
{
++
vcpu
->
stat
.
light_exits
;
goto
again
;
}
}
...
...
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