Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

qmp: support command 'query-qmp-schema' #104

Merged
merged 1 commit into from
Aug 1, 2019

Conversation

BetaXOi
Copy link

@BetaXOi BetaXOi commented Aug 1, 2019

The upper hyervisor manager application maybe need to wait some
QMP event to control boot sequence, but the event we wanted maybe
not exist in some older version, so we need query all QMP ABI and
check the event is supported or not.

related: kata-containers/runtime#1918

Signed-off-by: Ning Bo ning.bo9@zte.com.cn

qemu/qmp.go Outdated
func (q *QMP) readLoop(fromVMCh chan<- []byte) {
scanner := bufio.NewScanner(q.conn)
if q.cfg.MaxCapacity != 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just wondering why this change is needed? Is it because lines can be received via QMP that are greater than 64kb?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, QMP command query-qmp-schema will return 120kb almost.

@markdryan
Copy link
Contributor

markdryan commented Aug 1, 2019

@BetaXOi Could you provide more detailed information in the commit message about what the patch actually does and why? Also, it looks like the new test is failing for some reason.

@coveralls
Copy link

coveralls commented Aug 1, 2019

Coverage Status

Coverage decreased (-0.1%) to 79.803% when pulling 79e0d53 on BetaXOi:query-schema into e050524 on intel:master.

The upper hyervisor manager application maybe need to wait some
QMP event to control boot sequence, but the event we wanted maybe
not exist in some older version, so we need query all QMP ABI and
check the event is supported or not.

related: kata-containers/runtime#1918

Signed-off-by: Ning Bo <ning.bo9@zte.com.cn>
Copy link
Contributor

@markdryan markdryan left a comment

Choose a reason for hiding this comment

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

LGTM

@markdryan markdryan merged commit aa341b0 into kata-containers:master Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants