Skip to contentSkip to conversation

Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

PATCH Applied Cam Macdonell 5 participants 11 messages Aug 11, 2010 – Aug 15, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 3378bd3..d45f9fa 100644
@@ -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
#1 lore raw

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
index b791492..c8281e9 100644
@@ -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
#2 lore raw
In reply to Cam Macdonell

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
index 3378bd3..d45f9fa 100644
@@ -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

#3 lore raw
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
index 3378bd3..d45f9fa 100644
@@ -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.c was using kvm_set_ioeventfd_mmio_long, so up to now, no dummy function in kvm-stub.c is needed.

Right. It can be left out for now if that's preferred.

Cam

maintainer
#4 lore raw
Quoted 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
index 3378bd3..d45f9fa 100644
@@ -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.c was using kvm_set_ioeventfd_mmio_long, so up to now, no dummy function in kvm-stub.c is 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

Acked-by on v1 1/2
#5 lore raw
In reply to Cam Macdonell

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
index 3378bd3..d45f9fa 100644
@@ -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

#6 lore raw

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
index 3378bd3..d45f9fa 100644
@@ -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
#7 lore raw

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
index b791492..c8281e9 100644
@@ -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
Applied
#8 lore raw

Re: [PATCH 2/2] RESEND: Disable build of ivshmem on non-KVM systems

Thanks, applied.

Quoted 23 lines · Cam Macdonell

---
 Makefile.target |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile.target +0 -0
index b791492..c8281e9 100644
@@ -191,7 +191,7 @@ obj-y += rtl8139.o

 obj-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

Applied
#9 lore raw

Re: [PATCH 1/2] RESEND: Add kvm_set_ioeventfd_mmio_long definition for non-KVM systems

In reply to Cam Macdonell

Thanks, applied.

Quoted 23 lines · Cam Macdonell

---
 kvm-stub.c |    5 +++++

 1 files changed, 5 insertions(+), 0 deletions(-)
kvm-stub.c +5 -1
index 3378bd3..d45f9fa 100644
@@ -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

#10 lore raw
In reply to Andreas Färber
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
index 3378bd3..d45f9fa 100644
@@ -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 -1
+{
+    return -ENOSYS;
+}
--
Quoted 1 line

1.6.2.5

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_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