Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: fix missing of VhostUserDeviceReconnect parameter assignment #9849

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

markyangcc
Copy link

Below commit implements the vhost-user-blk reconnection functionality,
runtime: add reconnect timeout for vhost user block

However, this commit has missed assigning VhostUserDeviceReconnect when new the QEMU HypervisorConfig, resulting in VhostUserDeviceReconnect always set to default value 0.

Fixes: #9848

Copy link
Member

@justxuewei justxuewei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

@justxuewei
Copy link
Member

/test

@markyangcc
Copy link
Author

/test

Copy link
Contributor

@Apokleos Apokleos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx @markyangcc for your contribution.
Could you please add this message to git's commit ?You can follow the example
IMO, this maybe only involve small changes but as a result of go format causing the whole HypervisorConfig change(L909 ->L979)

Commit 'ca02c9f5124e' implements the vhost-user-blk reconnection functionality,
However, it has missed assigning VhostUserDeviceReconnect when new the QEMU
HypervisorConfig, resulting in VhostUserDeviceReconnect always set to default value 0.

Real change is this line, most of changes caused by go format,

return vc.HypervisorConfig{
	// ...
	VhostUserDeviceReconnect: h.VhostUserDeviceReconnect,
}, nil

Fixes: kata-containers#9848
Signed-off-by: markyangcc <mmdou3@163.com>
@markyangcc
Copy link
Author

markyangcc commented Jun 18, 2024

Thx @markyangcc for your contribution. Could you please add this message to git's commit ?You can follow the example IMO, this maybe only involve small changes but as a result of go format causing the whole HypervisorConfig change(L909 ->L979)

Yes, real change is add below line, most of changes caused by go format,

return vc.HypervisorConfig{
	// ...
	VhostUserDeviceReconnect: h.VhostUserDeviceReconnect,
}, nil

Also, commit message updated.

@markyangcc markyangcc requested a review from Apokleos June 18, 2024 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/large Task of significant size
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vhost-user-blk reconnect parameter in configuration.toml not working as expected
4 participants