Skip to content

qmp_command: qmp_memsave test uses invalid virtual address #1506

@rayx

Description

@rayx

qmp_memsave failed on aarch64 with this error:

 
11:00:49 ERROR| TestFail: QMP command 'memsave' failed    (arguments: {'filename': '/var/tmp/memsave', 'val': 0, 'size': 4096},    error message: {u'class': u'GenericError', u'desc': u'Invalid addr 0x0000000000000000/size 4096 specified'})

Does this test works on x86_64? I doubt it because from my understanding 0x0 address is usually not mapped.

I think the test should be modified to use a valid virtual address. Below is the approach I use in my manual experiment (I choose _text symbol because I suppose it's available on all archs):

 
$ sudo cat /proc/kallsyms | grep -w _text | awk '{print $1}'
ffff000008080000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions