Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

add dax support #495

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

add dax support #495

wants to merge 1 commit into from

Conversation

laijs
Copy link
Contributor

@laijs laijs commented Apr 26, 2017

Signed-off-by: Lai Jiangshan [email protected]

Copy link
Member

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

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

qemu docs says

 - "slots=$N" should be equal to or larger than the total amount of
   normal RAM devices and vNVDIMM devices, e.g. $N should be >= 2 here.

Do we need to specify additional ram slots when adding nvdimm? It looks like the guest only has one slot currently:

root@ubuntu-fio-2760258893:/# lshw -class memory
  *-firmware
       description: BIOS
       vendor: Bochs
       physical id: 0
       version: Bochs
       date: 01/01/2011
       size: 96KiB
  *-memory
       description: System Memory
       physical id: 1000
       size: 128MiB
       capacity: 128MiB
     *-bank
          description: DIMM RAM
          physical id: 0
          slot: DIMM 0
          size: 128MiB
          width: 64 bits

Execute: "human-monitor-command",
Arguments: map[string]interface{}{
"command-line": "object_add memory-backend-file,id=mem" + strconv.Itoa(blockInfo.PmemId) +
",share=off,mem-path=" + filename + ",size=" + strconv.FormatInt(size, 10),
Copy link
Member

Choose a reason for hiding this comment

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

qemu docs says

"share=off", then guest writes won't be applied to the backend
   file and thus will be invisible to other guests.

Does it mean all guest modification to rootfs will be lost?

@laijs
Copy link
Contributor Author

laijs commented May 23, 2017

updated.
It should be tested with 2.8 or newer qemu. (just use the official qemu).
And daxblock branch of the hyperstart.
And in /etc/hyper/config.

Hypervisor=qemu # or # Hypervisor=libvirt
StorageDriver=rawblock
StorageOptions=daxblock

@laijs
Copy link
Contributor Author

laijs commented May 23, 2017

"EnableNvdimm" needs to be added to BootConfig. otherwise the PR breaks cases with the older qemus.

Signed-off-by: Lai Jiangshan <[email protected]>
@gnawux
Copy link
Member

gnawux commented Aug 3, 2017

@laijs should we close this PR?

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.

3 participants