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
nexedi
linux
Commits
ca9edaee
Commit
ca9edaee
authored
Dec 08, 2008
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: Consolidate userspace memory capability reporting into common code
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
1a811b61
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1 addition
and
7 deletions
+1
-7
arch/ia64/kvm/kvm-ia64.c
arch/ia64/kvm/kvm-ia64.c
+0
-1
arch/powerpc/kvm/powerpc.c
arch/powerpc/kvm/powerpc.c
+0
-3
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.c
+0
-2
arch/x86/kvm/x86.c
arch/x86/kvm/x86.c
+0
-1
virt/kvm/kvm_main.c
virt/kvm/kvm_main.c
+1
-0
No files found.
arch/ia64/kvm/kvm-ia64.c
View file @
ca9edaee
...
@@ -180,7 +180,6 @@ int kvm_dev_ioctl_check_extension(long ext)
...
@@ -180,7 +180,6 @@ int kvm_dev_ioctl_check_extension(long ext)
switch
(
ext
)
{
switch
(
ext
)
{
case
KVM_CAP_IRQCHIP
:
case
KVM_CAP_IRQCHIP
:
case
KVM_CAP_USER_MEMORY
:
case
KVM_CAP_MP_STATE
:
case
KVM_CAP_MP_STATE
:
r
=
1
;
r
=
1
;
...
...
arch/powerpc/kvm/powerpc.c
View file @
ca9edaee
...
@@ -137,9 +137,6 @@ int kvm_dev_ioctl_check_extension(long ext)
...
@@ -137,9 +137,6 @@ int kvm_dev_ioctl_check_extension(long ext)
int
r
;
int
r
;
switch
(
ext
)
{
switch
(
ext
)
{
case
KVM_CAP_USER_MEMORY
:
r
=
1
;
break
;
case
KVM_CAP_COALESCED_MMIO
:
case
KVM_CAP_COALESCED_MMIO
:
r
=
KVM_COALESCED_MMIO_PAGE_OFFSET
;
r
=
KVM_COALESCED_MMIO_PAGE_OFFSET
;
break
;
break
;
...
...
arch/s390/kvm/kvm-s390.c
View file @
ca9edaee
...
@@ -113,8 +113,6 @@ long kvm_arch_dev_ioctl(struct file *filp,
...
@@ -113,8 +113,6 @@ long kvm_arch_dev_ioctl(struct file *filp,
int
kvm_dev_ioctl_check_extension
(
long
ext
)
int
kvm_dev_ioctl_check_extension
(
long
ext
)
{
{
switch
(
ext
)
{
switch
(
ext
)
{
case
KVM_CAP_USER_MEMORY
:
return
1
;
default:
default:
return
0
;
return
0
;
}
}
...
...
arch/x86/kvm/x86.c
View file @
ca9edaee
...
@@ -964,7 +964,6 @@ int kvm_dev_ioctl_check_extension(long ext)
...
@@ -964,7 +964,6 @@ int kvm_dev_ioctl_check_extension(long ext)
case
KVM_CAP_IRQCHIP
:
case
KVM_CAP_IRQCHIP
:
case
KVM_CAP_HLT
:
case
KVM_CAP_HLT
:
case
KVM_CAP_MMU_SHADOW_CACHE_CONTROL
:
case
KVM_CAP_MMU_SHADOW_CACHE_CONTROL
:
case
KVM_CAP_USER_MEMORY
:
case
KVM_CAP_SET_TSS_ADDR
:
case
KVM_CAP_SET_TSS_ADDR
:
case
KVM_CAP_EXT_CPUID
:
case
KVM_CAP_EXT_CPUID
:
case
KVM_CAP_CLOCKSOURCE
:
case
KVM_CAP_CLOCKSOURCE
:
...
...
virt/kvm/kvm_main.c
View file @
ca9edaee
...
@@ -1908,6 +1908,7 @@ static int kvm_dev_ioctl_create_vm(void)
...
@@ -1908,6 +1908,7 @@ static int kvm_dev_ioctl_create_vm(void)
static
long
kvm_dev_ioctl_check_extension_generic
(
long
arg
)
static
long
kvm_dev_ioctl_check_extension_generic
(
long
arg
)
{
{
switch
(
arg
)
{
switch
(
arg
)
{
case
KVM_CAP_USER_MEMORY
:
case
KVM_CAP_DESTROY_MEMORY_REGION_WORKS
:
case
KVM_CAP_DESTROY_MEMORY_REGION_WORKS
:
return
1
;
return
1
;
default:
default:
...
...
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