s and PCMachineState::node_mem,
since they are just copied from MachineState::numa_state.
Reviewed-by: Philippe Mathieu-Daudé
Signed-off-by: Jingqi Liu
---
hw/i386/acpi-build.c | 12 +++-
hw/i386/pc.c | 9 -
include/hw/i386/pc.h | 4
3 files changed, 7 inserti
We can get NUMA information completely from MachineState::numa_state.
Remove PCMachineState::numa_nodes and PCMachineState::node_mem,
since they are just copied from MachineState::numa_state.
Signed-off-by: Jingqi Liu
---
hw/i386/acpi-build.c | 12 +++-
hw/i386/pc.c | 9
The NUMA information in PCMachineState is copied from MachineState.
We get this information uniformly from struct NumaState in MachineState.
Signed-off-by: Jingqi Liu
---
hw/i386/acpi-build.c | 12 +++-
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/hw/i386/acpi-build.c b
reconfigure-device dax0.0 --mode=system-ram
There are two existing NUMA nodes in Guest. After these operations,
persistent memory is configured as a separate Node 2 and
can be used as a volatile memory. This NUMA node is dynamically
created according to 'target-node'.
Signed-off-by:
rget-node' properties mutually exclusive.
Create a callback of nvdimm_pre_plug() for checking
whether the 'target-node' is correct.
v1:
- It's the initial version.
Jingqi Liu (1):
nvdimm: add 'target-node' option
docs/nvdimm.txt
reconfigure-device dax0.0 --mode=system-ram
There are two existing NUMA nodes in Guest. After these operations,
persistent memory is configured as a separate Node 2 and
can be used as a volatile memory. This NUMA node is dynamically
created according to 'target-node'.
Signed-off-by:
sync memory range“
So we add 'pmem=on' to avoid calling msync(), use the QEMU command line:
-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G
Reviewed-by: Stefan Hajnoczi
Reviewed-by: Pankaj Gupta
Signed-off-by: Jingqi Liu
---
docs/nvdimm.txt | 7 +++
sync memory range“
So we add 'pmem=on' to avoid calling msync(), use the QEMU command line:
-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G
Reviewed-by: Stefan Hajnoczi
Signed-off-by: Jingqi Liu
---
docs/nvdimm.txt | 7 +++
1 file changed, 7 inse
sync memory range“
So we add 'pmem=on' to avoid calling msync(), use the QEMU command line:
-object memory-backend-file,id=mem1,pmem=on,mem-path=/dev/dax0.0,size=4G
Signed-off-by: Jingqi Liu
---
docs/nvdimm.txt | 7 +++
1 file changed, 7 insertions(+)
diff --git a/docs/nv
of: pmem/ndctl/daxctl/lib/libdaxctl.c.
Reviewed-by: Joao Martins
Signed-off-by: Jingqi Liu
---
configure | 29 +
1 file changed, 29 insertions(+)
diff --git a/configure b/configure
index e225a1e3ff..d2418084c1 100755
--- a/configure
+++ b/configure
@@
For device dax (e.g., /dev/dax0.0), the NUM of 'align=NUM' option
needs to match the alignment requirement of the device dax.
It must be larger than or equal to the 'align' of device dax.
Reviewed-by: Joao Martins
Signed-off-by: Jingqi Liu
---
docs/nvdimm.txt | 10 ++
s less than the devdax pmem file 'align'.
Suggested-by: Dan Williams
Reviewed-by: Joao Martins
Signed-off-by: Jingqi Liu
---
exec.c | 54 +-
1 file changed, 53 insertions(+), 1 deletion(-)
diff --git a/exec.c b/exec.c
index d
cs/nvdimm.txt.
v2:
- Per Paolo and Dan's suggestions, fetch the alignment of device dax
through libdaxctl APIs.
v1:
- The initial version.
Fetch the alignment through "/sys/dev/char/%d:%d/device/align".
Jingqi Liu (3):
exec: fetch the alignment of Linux dev
s less than the devdax pmem file 'align'.
Suggested-by: Dan Williams
Signed-off-by: Jingqi Liu
---
exec.c | 54 +-
1 file changed, 53 insertions(+), 1 deletion(-)
diff --git a/exec.c b/exec.c
index de9d949902..2c3444e47e 100644
--- a
For device dax (e.g., /dev/dax0.0), the NUM of 'align=NUM' option
needs to match the alignment requirement of the device dax.
It must be larger than or equal to the 'align' of device dax.
Signed-off-by: Jingqi Liu
---
docs/nvdimm.txt | 9 +
1 file changed, 9 inserti
[1] Libdaxctl is a part of ndctl project.
The project's repository is: https://github.com/pmem/ndctl
Changelog:
v2: Per Paolo and Dan suggestions, fetch the alignment of device dax
through libdaxctl APIs.
v1: The initial version.
Fetch the alignment through "/sys/dev/cha
tl/daxctl/lib/libdaxctl.c.
Signed-off-by: Jingqi Liu
---
configure | 30 ++
1 file changed, 30 insertions(+)
diff --git a/configure b/configure
index e225a1e3ff..df1752cf08 100755
--- a/configure
+++ b/configure
@@ -509,6 +509,7 @@ libpmem=""
default_devic
so that we can compare
it with the NUM of 'align=NUM'.
The NUM needs to be larger than or equal to the devdax pmem file 'align'.
It also fixes the problem that mmap() returns failure in qemu_ram_mmap()
when the NUM of 'align=NUM' is less than the devdax pme
The CONFIG_LINUX symbol is always undefined before including "qemu/osdep.h".
Use __linux__ to check if target OS is linux instead of CONFIG_LINUX.
Signed-off-by: Jingqi Liu
---
util/mmap-alloc.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/util/mmap-allo
The CONFIG_LINUX symbol is always not defined in this file.
This fixes that "config-host.h" header file is not included
for getting macros.
Signed-off-by: Jingqi Liu
---
util/mmap-alloc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/util/mmap-alloc.c b/util/mmap-all
-programming-reference.pdf
Jingqi Liu (3):
x86/cpu: Enable UMONITOR/UMWAIT/TPAUSE cpu features
x86/cpu: Enable MOVDIRI cpu feature
x86/cpu: Enable MOVDIR64B cpu feature
target/i386/cpu.c | 6 +++---
target/i386/cpu.h | 3 +++
2 files changed, 6 insertions(+), 3 deletions(-)
--
1.8.3.1
:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf
Signed-off-by: Jingqi Liu
---
target/i386/cpu.c | 2 +-
target/i386/cpu.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target
-reference.pdf
Signed-off-by: Jingqi Liu
---
target/i386/cpu.c | 2 +-
target/i386/cpu.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index e0e2f2e..e0d151f 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -978,7 +978,7
:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf
Signed-off-by: Jingqi Liu
---
target/i386/cpu.c | 2 +-
target/i386/cpu.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target
The MSR (33H) controls support for #AC exception
for split locked accesses. When bit 29 of the MSR (33H)
is set, the processor causes an #AC exception to
be issued instead of suppressing LOCK on bus
(during split lock access).
Signed-off-by: Jingqi Liu
---
target/i386/cpu.h | 2 ++
target
exception to be issued instead of suppressing LOCK on
bus(during split lock access).
Signed-off-by: Jingqi Liu
---
accel/kvm/kvm-all.c | 10 ++
hw/core/machine.c | 19 +++
include/hw/boards.h | 1 +
linux-headers/linux/kvm.h | 1 +
qemu-options.hx
below link:
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf
Signed-off-by: Jingqi Liu
---
target/i386/cpu.c | 2 +-
target/i386/cpu.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.
27 matches
Mail list logo