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
02e235bc
Commit
02e235bc
authored
Feb 19, 2007
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Add hypercall host support for svm
Signed-off-by:
Avi Kivity
<
avi@qumranet.com
>
parent
c21415e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
drivers/kvm/svm.c
drivers/kvm/svm.c
+15
-1
No files found.
drivers/kvm/svm.c
View file @
02e235bc
...
@@ -1076,6 +1076,20 @@ static int halt_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
...
@@ -1076,6 +1076,20 @@ static int halt_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
return
0
;
return
0
;
}
}
static
int
vmmcall_interception
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
kvm_run
)
{
printk
(
KERN_DEBUG
"got vmmcall at RIP %08llx
\n
"
,
vcpu
->
svm
->
vmcb
->
save
.
rip
);
printk
(
KERN_DEBUG
"vmmcall params: %08llx, %08lx, %08lx, %08lx
\n
"
,
vcpu
->
svm
->
vmcb
->
save
.
rax
,
vcpu
->
regs
[
VCPU_REGS_RCX
],
vcpu
->
regs
[
VCPU_REGS_RDX
],
vcpu
->
regs
[
VCPU_REGS_RBP
]);
vcpu
->
svm
->
vmcb
->
save
.
rax
=
0
;
vcpu
->
svm
->
vmcb
->
save
.
rip
+=
3
;
return
1
;
}
static
int
invalid_op_interception
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
kvm_run
)
static
int
invalid_op_interception
(
struct
kvm_vcpu
*
vcpu
,
struct
kvm_run
*
kvm_run
)
{
{
inject_ud
(
vcpu
);
inject_ud
(
vcpu
);
...
@@ -1276,7 +1290,7 @@ static int (*svm_exit_handlers[])(struct kvm_vcpu *vcpu,
...
@@ -1276,7 +1290,7 @@ static int (*svm_exit_handlers[])(struct kvm_vcpu *vcpu,
[
SVM_EXIT_TASK_SWITCH
]
=
task_switch_interception
,
[
SVM_EXIT_TASK_SWITCH
]
=
task_switch_interception
,
[
SVM_EXIT_SHUTDOWN
]
=
shutdown_interception
,
[
SVM_EXIT_SHUTDOWN
]
=
shutdown_interception
,
[
SVM_EXIT_VMRUN
]
=
invalid_op_interception
,
[
SVM_EXIT_VMRUN
]
=
invalid_op_interception
,
[
SVM_EXIT_VMMCALL
]
=
invalid_op
_interception
,
[
SVM_EXIT_VMMCALL
]
=
vmmcall
_interception
,
[
SVM_EXIT_VMLOAD
]
=
invalid_op_interception
,
[
SVM_EXIT_VMLOAD
]
=
invalid_op_interception
,
[
SVM_EXIT_VMSAVE
]
=
invalid_op_interception
,
[
SVM_EXIT_VMSAVE
]
=
invalid_op_interception
,
[
SVM_EXIT_STGI
]
=
invalid_op_interception
,
[
SVM_EXIT_STGI
]
=
invalid_op_interception
,
...
...
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