Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems
PATCH 1/2 Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems
--- kvm-stub.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
kvm-stub.c +5 -0
@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) {return -ENOSYS ; } + +int kvm_set_ioeventfd_mmio_long (int fd,uint32_t adr,uint32_t val,bool assign) +{ +return -ENOSYS ; +}
Signature · 1 line
1.6.2.5
PATCH 2/2 Disable build of ivshmem on non-KVM systems
--- Makefile.target | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.target +1 -1
@@ -191,7 +191,7 @@ obj-y += rtl8139.o obj-y += e1000.o # Inter-VM PCI shared memory -obj-y += ivshmem.o +obj-$(CONFIG_KVM) += ivshmem.o # Hardware support obj-i386-y += vga.o
Signature · 1 line
1.6.2.5
Am 11.08.2010 20:16, schrieb Cam Macdonell:
Quoted 16 lines
---
kvm-stub.c| 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)kvm-stub.c +0
-0@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) {return -ENOSYS ;}
kvm-stub.c +2
-0+ +int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val,bool assign)
kvm-stub.c int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) · line 143
Quoted 3 lines
kvm-stub.c +3
-0+{ +return -ENOSYS ; +}
Your 2nd patch disables build of ivshmem.o on non-kvm systems. Only ivshmem.c was using kvm_set_ioeventfd_mmio_long, so up to now, no dummy function in kvm-stub.c is needed.
Regards
Stefan
Quoted 17 lines · Stefan Weil
Am 11.08.2010 20:16, schrieb Cam Macdonell:
Quoted 16 lines
---
kvm-stub.c| 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)kvm-stub.c +0
-0@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) {return -ENOSYS ;}
kvm-stub.c +2
-0+ +int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val, bool
Quoted 8 lines
kvm-stub.c int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) · line 143
Quoted 4 lines
assign)
kvm-stub.c +3
-0+{ +return -ENOSYS ; +}Your 2nd patch disables build of ivshmem.o on non-kvm systems. Only
ivshmem.cwas usingkvm_set_ioeventfd_mmio_long, so up to now, no dummy function inkvm-stub.cis needed.
Right. It can be left out for now if that's preferred.
Cam
Paolo Bonzini
maintainerQuoted 27 lines · Cam Macdonell
Quoted 17 lines · Stefan Weil
Am 11.08.2010 20:16, schrieb Cam Macdonell:
Quoted 16 lines
---
kvm-stub.c| 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)kvm-stub.c +0
-0@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) {return -ENOSYS ;}
kvm-stub.c +2
-0+ +int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val, boolQuoted 8 lines
kvm-stub.c int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) · line 143
Quoted 4 lines
assign)
kvm-stub.c +3
-0+{ +return -ENOSYS ; +}Your 2nd patch disables build of ivshmem.o on non-kvm systems. Only
ivshmem.cwas usingkvm_set_ioeventfd_mmio_long, so up to now, no dummy function inkvm-stub.cis needed.
Quoted 1 line
Right. It can be left out for now if that's preferred.
No, your patch is correct. If kvm-stub.c is not complete, the build will break the next time someone uses one of those functions.
Paolo
Am 11.08.2010 um 20:16 schrieb Cam Macdonell:
Quoted 21 lines
---
kvm-stub.c| 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)kvm-stub.c +0
-0@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) {return -ENOSYS ;}
kvm-stub.c +2
-0+ +int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val,bool assign)
kvm-stub.c +3
-0+{ +return -ENOSYS ; +}Signature · 1 line
1.6.2.5
This fixes linking [1] on Mac OS X.
The patch is missing a Signed-off-by though, same for 2/2.
Andreas
[1]
LINK i386-softmmu/qemu
Undefined symbols:
"_kvm_set_ioeventfd_mmio_long", referenced from:
_ivshmem_read in ivshmem.o _ivshmem_read in ivshmem.o _ivshmem_mmio_map in ivshmem.o
ld: symbol(s) not found
collect2: ld returned 1 exit status make[1]: *** [qemu] Error 1
make: *** [subdir-i386-softmmu] Error 2
PATCH 1/2 RESEND: Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems
--- kvm-stub.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
kvm-stub.c +5 -0
@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) {return -ENOSYS ; } + +int kvm_set_ioeventfd_mmio_long (int fd,uint32_t adr,uint32_t val,bool assign) +{ +return -ENOSYS ; +}
Signature · 1 line
1.6.2.5
PATCH 2/2 RESEND: Disable build of ivshmem on non-KVM systems
--- Makefile.target | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.target +1 -1
@@ -191,7 +191,7 @@ obj-y += rtl8139.o obj-y += e1000.o # Inter-VM PCI shared memory -obj-y += ivshmem.o +obj-$(CONFIG_KVM) += ivshmem.o # Hardware support obj-i386-y += vga.o
Signature · 1 line
1.6.2.5
Blue Swirl
AppliedRe: [PATCH 2/2] RESEND: Disable build of ivshmem on non-KVM systems
Thanks, applied.
Quoted 23 lines · Cam Macdonell
Signed-off-by Cam Macdonell <[email protected]>---
Makefile.target | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)Makefile.target +0
-0@@ -191,7 +191,7 @@ obj-y += rtl8139.oobj-y += e1000.o
# Inter-VM PCI shared memory
Makefile.target +1
-1-obj-y += ivshmem.o +obj-$(CONFIG_KVM) += ivshmem.o# Hardware support
obj-i386-y += vga.o
--
1.6.2.5
Blue Swirl
AppliedRe: [PATCH 1/2] RESEND: Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems
In reply to Cam MacdonellThanks, applied.
Quoted 23 lines · Cam Macdonell
Signed-off-by Cam Macdonell <[email protected]>---
kvm-stub.c | 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)kvm-stub.c +5
-1@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) { return -ENOSYS; } + +int kvm_set_ioeventfd_mmio_long (int fd,uint32_t adr,uint32_t val,bool assign) +{ + return -ENOSYS; +} --1.6.2.5
Quoted 26 lines · Andreas Färber
Am 11.08.2010 um 20:16 schrieb Cam Macdonell:
Quoted 20 lines
---
kvm-stub.c| 5 +++++1 files changed, 5 insertions(+), 0 deletions(-)kvm-stub.c +0
-0@@ -136,3 +136,8 @@ int kvm_set_ioeventfd_pio_word(int fd, uint16_t addr, uint16_t val, bool assign) { return -ENOSYS;}
kvm-stub.c +2
-0+ +int kvm_set_ioeventfd_mmio_long(int fd, uint32_t adr, uint32_t val, boolassign)
kvm-stub.c +3
-1+{ + return -ENOSYS; +} --Quoted 1 line
1.6.2.5
Acked-by Andreas Färber <[email protected]>
Quoted 3 lines
This fixes linking [1] on Mac OS X.
The patch is missing a Signed-off-by though, same for 2/2.
I've re-sent with the sign-off.
Cam
Quoted 15 lines
Andreas
[1]
LINK i386-softmmu/qemu
Undefined symbols:
"_kvm_set_ioeventfd_mmio_long", referenced from:
_ivshmem_readin ivshmem.o_ivshmem_readin ivshmem.o_ivshmem_mmio_mapin ivshmem.o
ld: symbol(s) not found
collect2: ld returned 1 exit status make[1]: *** [qemu] Error 1
make: *** [subdir-i386-softmmu] Error 2