Skip to contentSkip to conversation

vhost-user: migration?

Qemu-devel Michael S. Tsirkin 3 participants 8 messages Jun 18, 2014 – Jan 9, 2015

lore
Share & tools
lore
#0 lore raw

Just a query whether migration works for you
guys with vhost-user and snabbswitch.

vhost user code seems to have enough hooks in
place to make it work, but was it tested
in practice?

Signature · 1 line
MST
#1 lore raw

Hello,

Quoted 4 lines · Michael S. Tsirkin

Just a query whether migration works for you
guys with vhost-user and snabbswitch.

I am not aware of anyone ever did such tests.

vhost user code seems to have enough hooks in

Quoted 4 lines

place to make it work, but was it tested
in practice?

Can you give some pointers of a simple/quick test scenario. Maybe we'll be able to set it up.

Quoted 4 lines

--
MST

regards,
Nikolay Nikolaev

#2 lore raw
Quoted 11 lines · Nikolay Nikolaev

Hello,

On Wed, Jun 18, 2014 at 12:33 PM, Michael S. Tsirkin <[email protected]> wrote:

Just a query whether migration works for you
guys with vhost-user and snabbswitch.

I am not aware of anyone ever did such tests.

Quoted 8 lines

vhost user code seems to have enough hooks in
place to make it work, but was it tested
in practice?

Can you give some pointers of a simple/quick test scenario. Maybe we'll be able to set it up.

Basically migrate while doing networking :)

Does your vhost server have code to set bits in the memory log when logging is enabled?
The log address is supplied to VHOST_SET_LOG_BASE and log_guest_addr.

Quoted 8 lines
   
    --
    MST

regards,
Nikolay Nikolaev

#3 lore raw
Quoted 20 lines · Michael S. Tsirkin
Quoted 3 lines · Nikolay Nikolaev

Hello,

On Wed, Jun 18, 2014 at 12:33 PM, Michael S. Tsirkin <[email protected]>

Quoted 8 lines · wrote:

Just a query whether migration works for you
guys with vhost-user and snabbswitch.

I am not aware of anyone ever did such tests.

Quoted 7 lines

vhost user code seems to have enough hooks in
place to make it work, but was it tested
in practice?

Can you give some pointers of a simple/quick test scenario. Maybe we'll

Quoted 9 lines

be able

Quoted 1 line

to set it up.

Basically migrate while doing networking :)

Does your vhost server have code to set bits in the memory log when logging is enabled?

No - we didn't implement this feature.

The log address is supplied to VHOST_SET_LOG_BASE and log_guest_addr.

Quoted 11 lines
Quoted 10 lines



    --
    MST

regards,
Nikolay Nikolaev

regards,
Nikolay Nikolaev

#4 lore raw
Quoted 29 lines · Nikolay Nikolaev

On Wed, Jun 18, 2014 at 2:29 PM, Michael S. Tsirkin <[email protected]> wrote:

On Wed, Jun 18, 2014 at 02:24:32PM +0300, Nikolay Nikolaev wrote:
> Hello,
>
> On Wed, Jun 18, 2014 at 12:33 PM, Michael S. Tsirkin <[email protected]> wrote:
>
>     Just a query whether migration works for you
>     guys with vhost-user and snabbswitch.
>
>
> I am not aware of anyone ever did such tests.
>
>
>     vhost user code seems to have enough hooks in
>     place to make it work, but was it tested
>     in practice?
>
>
>
> Can you give some pointers of a simple/quick test scenario. Maybe we'll be able
> to set it up.

Quoted 7 lines

Basically migrate while doing networking :)

Does your vhost server have code to set bits in the memory log when logging is enabled?

No - we didn't implement this feature.

Interesting. In that case vhost user should for now block migration.
You must also check log feature and return failure.

Quoted 16 lines
    The log address is supplied to VHOST_SET_LOG_BASE and log_guest_addr.


    >
    >
    >     --
    >     MST
    >
    >
    > regards,
    > Nikolay Nikolaev

regards,
Nikolay Nikolaev

#5 lore raw
Quoted 35 lines · Michael S. Tsirkin
Quoted 4 lines · Nikolay Nikolaev

On Wed, Jun 18, 2014 at 2:29 PM, Michael S. Tsirkin <[email protected]>

Quoted 5 lines · wrote:
    On Wed, Jun 18, 2014 at 02:24:32PM +0300, Nikolay Nikolaev wrote:
    > Hello,
    >
    > On Wed, Jun 18, 2014 at 12:33 PM, Michael S. Tsirkin <

[email protected]>

Quoted 8 lines
    wrote:
    >
    >     Just a query whether migration works for you
    >     guys with vhost-user and snabbswitch.
    >
    >
    > I am not aware of anyone ever did such tests.
    >
Quoted 8 lines
    >
    >     vhost user code seems to have enough hooks in
    >     place to make it work, but was it tested
    >     in practice?
    >
    >
    >
    > Can you give some pointers of a simple/quick test scenario. Maybe

we'll

Quoted 6 lines

be able
> to set it up.

Basically migrate while doing networking :)

Quoted 9 lines
Quoted 5 lines

Does your vhost server have code to set bits in the memory log when logging is enabled?

No - we didn't implement this feature.

Interesting. In that case vhost user should for now block migration.

Any place in the source where we can see example of similar behaviour?

Quoted 2 lines

You must also check log feature and return failure.

Should this happen on the QEMU side? Is this the log feature of the device?

regards,
Nikolay Nikolaev

Quoted 19 lines
Quoted 18 lines


    The log address is supplied to VHOST_SET_LOG_BASE and log_guest_addr.


    >
    >
    >     --
    >     MST
    >
    >
    > regards,
    > Nikolay Nikolaev

regards,
Nikolay Nikolaev

#6 lore raw
Quoted 52 lines · Nikolay Nikolaev

On Wed, Jun 18, 2014 at 3:35 PM, Michael S. Tsirkin <[email protected]> wrote:

On Wed, Jun 18, 2014 at 02:41:15PM +0300, Nikolay Nikolaev wrote:
>
>
>
> On Wed, Jun 18, 2014 at 2:29 PM, Michael S. Tsirkin <[email protected]> wrote:
>
>     On Wed, Jun 18, 2014 at 02:24:32PM +0300, Nikolay Nikolaev wrote:
>     > Hello,
>     >
>     > On Wed, Jun 18, 2014 at 12:33 PM, Michael S. Tsirkin < [email protected]>
>     wrote:
>     >
>     >     Just a query whether migration works for you
>     >     guys with vhost-user and snabbswitch.
>     >
>     >
>     > I am not aware of anyone ever did such tests.
>     >
>     >
>     >     vhost user code seems to have enough hooks in
>     >     place to make it work, but was it tested
>     >     in practice?
>     >
>     >
>     >
>     > Can you give some pointers of a simple/quick test scenario. Maybe we'll
>     be able
>     > to set it up.
>
>
>     Basically migrate while doing networking :)
>
>     Does your vhost server have code to set bits in the memory log >     when logging is enabled?
>
>
> No - we didn't implement this feature.

Interesting. In that case vhost user should for now block migration.

Any place in the source where we can see example of similar behaviour?

Quoted 7 lines

You must also check log feature and return failure.

Should this happen on the QEMU side? Is this the log feature of the device?

regards,
Nikolay Nikolaev

Well, QEMU is buggy in that it tries to set log flag without checking.
I will fix that.

However
1. Your server must not publish the VHOST_F_LOG_ALL feature.

On vhost side it should validate features set match the supported mask.
Also for flags in the virtqueue address structure. Please validate as much as possible, e.g. validate all unused fields are zero.
If things work by mistake now you will have to maintain them indefinitely.

Quoted 20 lines
Quoted 18 lines

    The log address is supplied to VHOST_SET_LOG_BASE and log_guest_addr.

    >
    >
    >     --
    >     MST
    >
    >
    > regards,
    > Nikolay Nikolaev

regards,
Nikolay Nikolaev

#7 lore raw

Hi,
what's the status of migration support for vhost-user?

Thanks,
Zhang Haoyu

Quoted 97 lines · Michael S. Tsirkin
Quoted 52 lines · Nikolay Nikolaev

On Wed, Jun 18, 2014 at 3:35 PM, Michael S. Tsirkin <[email protected]> wrote:

On Wed, Jun 18, 2014 at 02:41:15PM +0300, Nikolay Nikolaev wrote:
>
>
>
> On Wed, Jun 18, 2014 at 2:29 PM, Michael S. Tsirkin <[email protected]> wrote:
>
>     On Wed, Jun 18, 2014 at 02:24:32PM +0300, Nikolay Nikolaev wrote:
>     > Hello,
>     >
>     > On Wed, Jun 18, 2014 at 12:33 PM, Michael S. Tsirkin < [email protected]>
>     wrote:
>     >
>     >     Just a query whether migration works for you
>     >     guys with vhost-user and snabbswitch.
>     >
>     >
>     > I am not aware of anyone ever did such tests.
>     >
>     >
>     >     vhost user code seems to have enough hooks in
>     >     place to make it work, but was it tested
>     >     in practice?
>     >
>     >
>     >
>     > Can you give some pointers of a simple/quick test scenario. Maybe we'll
>     be able
>     > to set it up.
>
>
>     Basically migrate while doing networking :)
>
>     Does your vhost server have code to set bits in the memory log >     when logging is enabled?
>
>
> No - we didn't implement this feature.

Interesting. In that case vhost user should for now block migration.

Any place in the source where we can see example of similar behaviour?

Quoted 7 lines

You must also check log feature and return failure.

Should this happen on the QEMU side? Is this the log feature of the device?

regards,
Nikolay Nikolaev

Well, QEMU is buggy in that it tries to set log flag without checking.
I will fix that.

However
1. Your server must not publish the VHOST_F_LOG_ALL feature.

On vhost side it should validate features set match the supported mask.
Also for flags in the virtqueue address structure. Please validate as much as possible, e.g. validate all unused fields are zero.
If things work by mistake now you will have to maintain them indefinitely.

Quoted 18 lines
Quoted 18 lines

    The log address is supplied to VHOST_SET_LOG_BASE and log_guest_addr.

    >
    >
    >     --
    >     MST
    >
    >
    > regards,
    > Nikolay Nikolaev

regards,
Nikolay Nikolaev