[Qemu-devel] [Bug 1333688] Re: vhost-user: VHOST_USER_SET_MEM_TABLE doesn't contain all regions

2014-06-30 Thread Damjan Marion
Problem fixed in qemu commit 3fd74b84. ** Changed in: qemu Status: New => Fix Committed -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1333688 Title: vhost-user: VHOST_USER_SET_MEM_TABLE doe

[Qemu-devel] [PATCH v3] vhost-user: fix regions provied with VHOST_USER_SET_MEM_TABLE message

2014-06-26 Thread Damjan Marion
user applicaton can call mmap() multiple times with the same FD but with different offset (user needs to take care for offset page alignment) Signed-off-by: Damjan Marion --- docs/specs/vhost-user.txt | 7 --- exec.c| 7 +++ hw/virtio/vhost-user.c| 23

Re: [Qemu-devel] [PATCH v2] vhost-user: fix VHOST_USER_SET_MEM_TABLE

2014-06-26 Thread Damjan Marion (damarion)
On 26 Jun 2014, at 13:37, Michael S. Tsirkin wrote: > On Thu, Jun 26, 2014 at 11:35:13AM +0000, Damjan Marion (damarion) wrote: >> >> On 26 Jun 2014, at 13:30, Michael S. Tsirkin wrote: >> >>> On Thu, Jun 26, 2014 at 12:22:59PM +0200, Damjan Marion wrote: >&g

Re: [Qemu-devel] [PATCH v2] vhost-user: fix VHOST_USER_SET_MEM_TABLE

2014-06-26 Thread Damjan Marion (damarion)
On 26 Jun 2014, at 13:30, Michael S. Tsirkin wrote: > On Thu, Jun 26, 2014 at 12:22:59PM +0200, Damjan Marion wrote: >> Old code was affected by memory gaps which >> resulted in buffer pointers pointing to >> address outside of the mapped regions. >> >

[Qemu-devel] [PATCH v2] vhost-user: fix VHOST_USER_SET_MEM_TABLE

2014-06-26 Thread Damjan Marion
Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Signed-off-by: Damjan Marion --- docs/specs/vhost-user.txt | 7 --- exec.c| 7 +++ hw/virtio/vhost-user.c| 23

Re: [Qemu-devel] [PATCH] vhost-user: fix VHOST_USER_SET_MEM_TABLE

2014-06-26 Thread Damjan Marion (damarion)
On 26 Jun 2014, at 10:01, Michael S. Tsirkin wrote: > On Thu, Jun 26, 2014 at 09:55:03AM +0200, Damjan Marion wrote: >> Old code was affected by memory gaps which >> resulted in buffer pointers pointing to >> address outside of the mapped regions. >> >

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-26 Thread Damjan Marion (damarion)
On 26 Jun 2014, at 09:56, Michael S. Tsirkin wrote: > On Thu, Jun 26, 2014 at 07:44:24AM +0000, Damjan Marion (damarion) wrote: >> >> On 26 Jun 2014, at 09:13, Michael S. Tsirkin wrote: >> >>> On Wed, Jun 25, 2014 at 09:52:09PM +, Damjan Marion (damarion) wr

[Qemu-devel] [PATCH] vhost-user: fix VHOST_USER_SET_MEM_TABLE

2014-06-26 Thread Damjan Marion
Old code was affected by memory gaps which resulted in buffer pointers pointing to address outside of the mapped regions. Signed-off-by: Damjan Marion --- docs/specs/vhost-user.txt | 7 --- exec.c| 7 +++ hw/virtio/vhost-user.c| 22

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-26 Thread Damjan Marion (damarion)
On 26 Jun 2014, at 09:13, Michael S. Tsirkin wrote: > On Wed, Jun 25, 2014 at 09:52:09PM +0000, Damjan Marion (damarion) wrote: >> >> On 25 Jun 2014, at 18:44, Paolo Bonzini wrote: >> >>>> nregions: 4 >>>> region: >>>>

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 18:44, Paolo Bonzini wrote: >> nregions: 4 >> region: >> gpa = 0x1 >> size = 3221225472 >> ua = 0x2aab6ac0 > > High memory, above 3 gigabytes. > >> region: >> gpa = 0xFFFC >> size = 262144 >> ua = 0x7fc13d20 > > This is the

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 20:18, Michael S. Tsirkin wrote: > On Wed, Jun 25, 2014 at 09:13:36PM +0300, Nikolay Nikolaev wrote: >> On Wed, Jun 25, 2014 at 9:07 PM, Michael S. Tsirkin wrote: >>> On Wed, Jun 25, 2014 at 07:56:46PM +0300, Nikolay Nikolaev wrote: On Wed, Jun 25, 2014 at 7:44 PM, Paolo

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 17:50, Michael S. Tsirkin wrote: > On Wed, Jun 25, 2014 at 03:46:04PM +0000, Damjan Marion (damarion) wrote: >> >> On 25 Jun 2014, at 17:29, Michael S. Tsirkin wrote: >> >>> On Wed, Jun 25, 2014 at 02:57:52PM +, Damjan Marion (damarion) wr

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 17:29, Michael S. Tsirkin wrote: > On Wed, Jun 25, 2014 at 02:57:52PM +0000, Damjan Marion (damarion) wrote: >> >> On 25 Jun 2014, at 16:27, Michael S. Tsirkin wrote: >> >>> On Wed, Jun 25, 2014 at 02:20:56PM +, Damjan Marion (damarion) wr

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 16:27, Michael S. Tsirkin wrote: > On Wed, Jun 25, 2014 at 02:20:56PM +0000, Damjan Marion (damarion) wrote: >> >> On 25 Jun 2014, at 16:13, Nikolay Nikolaev >> wrote: >> >>>>> - it will require changes on the user side also

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 16:13, Nikolay Nikolaev wrote: > >> - it will require changes on the user side also > > > > why would it? > > format seems unchanged, right? > > yes, but it will happen that multiple regions have same FD so call to mmap() > should look different, I’m still playing with this

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 16:06, Nikolay Nikolaev wrote: > +msg.memory.regions[fd_num].memory_size = reg->memory_size; > so this is size > +msg.memory.regions[fd_num].guest_phys_addr = > reg->memory_size; > and this is size again? mistake, i alredy noticed it. It

Re: [Qemu-devel] vhost-user: broken mem regions

2014-06-25 Thread Damjan Marion (damarion)
On 25 Jun 2014, at 15:53, Michael S. Tsirkin wrote: > On Wed, Jun 25, 2014 at 01:45:09PM +0000, Damjan Marion (damarion) wrote: >> >> Michael, >> >> there is another issue with commited vhost-user code. > > I'm answering just this once, but I have a po

[Qemu-devel] [PATCH] vhost-user: fix wrong ids in documentation

2014-06-25 Thread Damjan Marion
Signed-off-by: Damjan Marion --- docs/specs/vhost-user.txt | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/specs/vhost-user.txt b/docs/specs/vhost-user.txt index 0ea767e..2641390 100644 --- a/docs/specs/vhost-user.txt +++ b/docs/specs/vhost

[Qemu-devel] [Bug 1333688] [NEW] vhost-user: VHOST_USER_SET_MEM_TABLE doesn't contain all regions

2014-06-24 Thread Damjan Marion
Public bug reported: vhost-user implementation doesn't provide information about all memory regions, and in some cases client is not able to map buffer memory as he is missing memory region information for specific address. Same thing is implemented properly for vhost-net. Below gdb outputs ar

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-05-05 Thread Damjan Marion
Both systems I mentioned above were upgraded from precise to trusty. After reinstalling them with clean install issue disappear and VMs are not crashing anymore. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.n

[Qemu-devel] [Bug 1307473] Re: guest hang due to missing clock interrupt

2014-04-15 Thread Damjan Marion
just to clarify, i was pinning my test code inside the guest with "taskset -c 1". There was no pinning on the host side. Also, i see the same issue with -smp 2. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.n

[Qemu-devel] guest crash due to missing clock interrupt

2014-04-15 Thread Damjan Marion
Originally I reported this issue to ubuntu folks, and it is documented on the launchpad[1] but would like to bring this into attention also on this list. Basically seems that on some occasions clock interrupts are not happening for longer periods of time causing that some VMs are crashing (i.e

Re: [Qemu-devel] qemu crashes on Mac OS X

2011-07-27 Thread Damjan Marion
re Raymond wrote: >> Hi again Damjan, >> >> On Mon, Jul 4, 2011 at 6:35 PM, Damjan Marion >> wrote: >>> >>> On Jul 4, 2011, at 6:59 PM, Alexandre Raymond wrote: >>> >>>> Hi Damjan, >>>> >>>> >>>

Re: [Qemu-devel] qemu crashes on Mac OS X

2011-07-04 Thread Damjan Marion
On Jul 4, 2011, at 6:59 PM, Alexandre Raymond wrote: > Hi Damjan, > > > Can you try applying the following two patches and see if it solves > your problem? > > http://patchwork.ozlabs.org/patch/100348/ > http://patchwork.ozlabs.org/patch/100477/ > Unfortunately same thing happens: segmentati

[Qemu-devel] [Bug 804517] [NEW] qemu crashes on Darwin in qemu_iohandler_poll

2011-07-01 Thread Damjan Marion
Public bug reported: I have an issue when I try to run qemu-system-arm on Mac OS X. Sometime between 1 and 15 secs after qemu is started it crashes as shown bellow. Same thing on linux host works fine. Is anybody else experiencing this? Any Hints? Thanks, Damjan (gdb) run Starting program:

[Qemu-devel] [Bug 804517] Re: qemu crashes on Darwin in qemu_iohandler_poll

2011-07-01 Thread Damjan Marion
fter bisection seems that this starts happening after following patch: commit 09716e45a05cc0c93bcf55bd0c0888dd678e490f Author: Alexander Graf Date: Thu Jun 9 00:55:37 2011 +0200 sigfd: use pthread_sigmask diff --git a/compatfd.c b/compatfd.c index bd377c4..41586ce 100644 --- a/compatfd.c

Re: [Qemu-devel] qemu crashes on Mac OS X

2011-07-01 Thread Damjan Marion
On Jul 1, 2011, at 11:17 AM, Damjan Marion (damarion) wrote: > > Hi, > > I have an issue when I try to run qemu-system-arm on Mac OS X. > Sometime between 1 and 15 secs after qemu is started it crashes > as shown bellow. > > Same thing on linux host works fi

[Qemu-devel] qemu crashes on Mac OS X

2011-07-01 Thread Damjan Marion (damarion)
Hi, I have an issue when I try to run qemu-system-arm on Mac OS X. Sometime between 1 and 15 secs after qemu is started it crashes as shown bellow. Same thing on linux host works fine. Is anybody else experiencing this? Any Hints? Thanks, Damjan (gdb) run Starting program: /opt/arm-qemu/b