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

Support address and rom for hostdev #3362

Merged
merged 1 commit into from Apr 13, 2022

Conversation

Yingshun
Copy link
Contributor

@Yingshun Yingshun commented Mar 1, 2022

Add 'rom' and 'address' for Hostdev class.

Signed-off-by: Yingshun Cui yicui@redhat.com

Test results:
autotest/tp-libvirt#4073 (comment)

Add 'rom' and 'address' for Hostdev class.

Signed-off-by: Yingshun Cui <yicui@redhat.com>


class Hostdev(base.TypedDeviceBase):

__slots__ = ('type', 'mode', 'managed', 'sgio', 'rawio',
'source', 'boot_order', 'readonly', 'shareable',
'alias', 'model', 'teaming')
'alias', 'model', 'teaming', 'rom', 'address')
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps add simple hostdev xml under class Hostdev(base.TypedDeviceBase):
to make people understand what one typical hostdev looks like.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A reference link has been added to the top of the code, I don't think we need to 'copy' them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Currently already there are some devices xml following up that practice. But it doesn't block approve

@Yingshun Yingshun requested a review from chunfuwen March 2, 2022 06:37
Copy link
Contributor

@chunfuwen chunfuwen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dzhengfy dzhengfy left a comment

Choose a reason for hiding this comment

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

LGTM

@dzhengfy dzhengfy merged commit 690054f into avocado-framework:master Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants