Skip to contentSkip to conversation

KVM call agenda for Jan 11

Qemu-devel Juan Quintela 7 participants 11 messages Jan 10, 2011 – Jan 13, 2011 KVM

lore
Share & tools
lore
#0 lore raw

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

thanks, Juan.

#1 lore raw

Juan Quintela <[email protected]> wrote:

Now sent it to the right kvm list. Sorry for the second sent.

Quoted 5 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

thanks, Juan.

#2 lore raw
Quoted 7 lines · Juan Quintela

Juan Quintela <[email protected]> wrote:

Now sent it to the right kvm list. Sorry for the second sent.

Quoted 3 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

Just to add a bit more background. Last year we discussed the issue of whether to aim for a KVM Forum in the same style as we had in 2010, or whether to try to aim for a broader multi-track Virtualization conference that covers the whole stack.

Linux Foundation is happy to help host such an event, but they are asking for what our plans are. I posted a mock-proposal for tracks here:
http://www.linux-kvm.org/page/KVM_Forum_2011

Cheers,
Jes

#3 lore raw
Quoted 9 lines · Jes Sorensen
Quoted 7 lines · Juan Quintela

Juan Quintela <[email protected]> wrote:

Now sent it to the right kvm list.  Sorry for the second sent.

Quoted 3 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

Quoted 8 lines

Just to add a bit more background. Last year we discussed the issue of whether to aim for a KVM Forum in the same style as we had in 2010, or whether to try to aim for a broader multi-track Virtualization conference that covers the whole stack.

Linux Foundation is happy to help host such an event, but they are asking for what our plans are. I posted a mock-proposal for tracks here:
http://www.linux-kvm.org/page/KVM_Forum_2011

I thought having both KVM and Xen people at Linux Plumbers 2010 worked out well. Doing that with libvirt, OpenStack, etc has a lot of potential.

Stefan

#4 lore raw
Quoted 6 lines · Stefan Hajnoczi
Quoted 5 lines · Jes Sorensen

Just to add a bit more background. Last year we discussed the issue of whether to aim for a KVM Forum in the same style as we had in 2010, or whether to try to aim for a broader multi-track Virtualization conference that covers the whole stack.

Quoted 7 lines
Quoted 3 lines

Linux Foundation is happy to help host such an event, but they are asking for what our plans are. I posted a mock-proposal for tracks here:
http://www.linux-kvm.org/page/KVM_Forum_2011

I thought having both KVM and Xen people at Linux Plumbers 2010 worked out well.  Doing that with libvirt, OpenStack, etc has a lot of potential.

I'd certainly like an opportunity to meet other people interested in the TCG side of qemu, so personally I'd prefer the more broadly focused approach.

-- PMM

#5 lore raw
In reply to Juan Quintela
Quoted 9 lines · Juan Quintela

Juan Quintela <[email protected]> wrote:

Now sent it to the right kvm list. Sorry for the second sent.

Quoted 5 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

thanks, Juan.

- migration and block devices: a mess.
* patches I sent last week: only work for root (for some definition of work)
* qemu is used as non-root user.
* forcing to have cache=none solves the issue
* we use migrate not only for live migration, but also for save/resume.

At this point only 4 ideas remaining:

* -incoming-this-is-a-live-migration
(or the opposite -incoming-this-is-a-restore-operation)
* just forche cache=none if you want to call migration code.
* let management app to do the right thing (it can check for cache=none)
* do nothing and pray?

Later, Juan.

#6 lore raw

Am 10.01.2011 14:32, schrieb Juan Quintela:

Quoted 9 lines
Quoted 8 lines · Juan Quintela

Juan Quintela <[email protected]> wrote:

Now sent it to the right kvm list. Sorry for the second sent.

Quoted 4 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

Quoted 7 lines
Quoted 1 line
Quoted 1 line

thanks, Juan.

- migration and block devices: a mess.
* patches I sent last week: only work for root (for some definition of work)
* qemu is used as non-root user.
* forcing to have cache=none solves the issue

I need to have a look at the specific problem, but it's hard to imagine that cache=none fixes anything reliably.

Kevin

#7 lore raw
Quoted 12 lines · Kevin Wolf

Am 10.01.2011 14:32, schrieb Juan Quintela:

Quoted 11 lines
Quoted 9 lines · Juan Quintela

Juan Quintela <[email protected]> wrote:

Now sent it to the right kvm list. Sorry for the second sent.

Quoted 5 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

thanks, Juan.

Quoted 8 lines
Quoted 5 lines

- migration and block devices: a mess.
* patches I sent last week: only work for root (for some definition of work)
* qemu is used as non-root user.
* forcing to have cache=none solves the issue

I need to have a look at the specific problem, but it's hard to imagine that cache=none fixes anything reliably.

It uses O_DIRECT, that means that we don't have buffering problems. I state the problem again:

machine A read 1st block of device.
<and stays without doing anything else>
machine B reads writes lots of places including 1st block

now guest from machine A migrates to machine B
machine A re-reads the 1st block, and lo and behold, it reads the old contents, not the new ones.

Solutions:
- invalidate all buffers for that block device on machine A after migration.
* with NFS, just close + reopen the file (and pray that nobody else has it also opened)
* with block devices: use BLKFLBLK ioctl, and pray that nobody else is using the device, that device is not a ramdisk, and some more things. To add injury to insult, you need to be root to be able to issue that ioctl (technically have CAP_SYS_ADMIN).

O_DIRECT fixes this problem altogether, because there is no buffering, and if there are not buffers, they can't be invalid O:-)

Notice the "pray" part in the other solutions, we are basically trying to do a "poor man" DLM, and that is not trivial to do. (althougth our problem is not the general one, the principles are the same).

Later, Juan.

#8 lore raw
Quoted 37 lines · Juan Quintela
Quoted 15 lines · Kevin Wolf

Am 10.01.2011 14:32, schrieb Juan Quintela:

Quoted 13 lines
Quoted 11 lines · Juan Quintela

Juan Quintela<[email protected]> wrote:

Now sent it to the right kvm list. Sorry for the second sent.

Quoted 6 lines

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

thanks, Juan.

Quoted 9 lines
Quoted 6 lines

- migration and block devices: a mess.
* patches I sent last week: only work for root (for some definition of work)
* qemu is used as non-root user.
* forcing to have cache=none solves the issue

I need to have a look at the specific problem, but it's hard to imagine that cache=none fixes anything reliably.

It uses O_DIRECT, that means that we don't have buffering problems. I state the problem again:

machine A read 1st block of device.
<and stays without doing anything else>
machine B reads writes lots of places including 1st block

now guest from machine A migrates to machine B
machine A re-reads the 1st block, and lo and behold, it reads the old contents, not the new ones.

Quoted 10 lines

Solutions:
- invalidate all buffers for that block device on machine A after migration.
* with NFS, just close + reopen the file (and pray that nobody else has it also opened)
* with block devices: use BLKFLBLK ioctl, and pray that nobody else is using the device, that device is not a ramdisk, and some more things. To add injury to insult, you need to be root to be able to issue that ioctl (technically have CAP_SYS_ADMIN).

Why isn't fsync() enough for a block device?

Regards,

Anthony Liguori

Quoted 11 lines

O_DIRECT fixes this problem altogether, because there is no buffering, and if there are not buffers, they can't be invalid O:-)

Notice the "pray" part in the other solutions, we are basically trying to do a "poor man" DLM, and that is not trivial to do. (althougth our problem is not the general one, the principles are the same).

Later, Juan.

#9 lore raw
Quoted 11 lines · Anthony Liguori
Quoted 9 lines

- invalidate all buffers for that block device on machine A after migration.
* with NFS, just close + reopen the file (and pray that nobody else has it also opened)
* with block devices: use BLKFLBLK ioctl, and pray that nobody
else is
using the device, that device is not a ramdisk, and some more things. To add injury to insult, you need to be root to be able to issue that ioctl (technically have CAP_SYS_ADMIN).

Quoted 1 line

Why isn't fsync() enough for a block device?

fsync() is fine on the outgoing side, but not on the incoming side.

(the imcoming side might have valid buffers if it was the outgoing side on the previous migration, for example, or because of automatic probing)

Signature · 1 line
error compiling committee.c: too many arguments to function
#10 lore raw
In reply to Juan Quintela
Quoted 4 lines · Juan Quintela

Please send any agenda items you are interested in covering.

- KVM Forum 2011 (Jes).

- Spice guest agent (Alon)

Regards,

Anthony Liguori

Quoted 3 lines

thanks, Juan.