Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
ec2c7bce
Commit
ec2c7bce
authored
Aug 26, 2009
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Move assigned device code to own file
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
b0118f49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
include/linux/kvm_host.h
include/linux/kvm_host.h
+4
-3
virt/kvm/kvm_main.c
virt/kvm/kvm_main.c
+1
-1
No files found.
include/linux/kvm_host.h
View file @
ec2c7bce
...
...
@@ -581,12 +581,13 @@ static inline bool kvm_vcpu_is_bsp(struct kvm_vcpu *vcpu)
#ifdef __KVM_HAVE_DEVICE_ASSIGNMENT
long
kvm_assigned_dev_ioctl
(
struct
kvm
*
kvm
,
unsigned
ioctl
,
unsigned
long
arg
);
long
kvm_vm_ioctl_assigned_device
(
struct
kvm
*
kvm
,
unsigned
ioctl
,
unsigned
long
arg
);
#else
static
inline
long
kvm_assigned_dev_ioctl
(
struct
kvm
*
kvm
,
unsigned
ioctl
,
unsigned
long
arg
)
static
inline
long
kvm_vm_ioctl_assigned_device
(
struct
kvm
*
kvm
,
unsigned
ioctl
,
unsigned
long
arg
)
{
return
-
ENOTTY
;
}
...
...
virt/kvm/kvm_main.c
View file @
ec2c7bce
...
...
@@ -1493,7 +1493,7 @@ static long kvm_vm_ioctl(struct file *filp,
default:
r
=
kvm_arch_vm_ioctl
(
filp
,
ioctl
,
arg
);
if
(
r
==
-
ENOTTY
)
r
=
kvm_
assigned_dev_ioctl
(
kvm
,
ioctl
,
arg
);
r
=
kvm_
vm_ioctl_assigned_device
(
kvm
,
ioctl
,
arg
);
}
out:
return
r
;
...
...
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