TD guest fails to boot up: ERROR:../system/memory.c:2043:memory_region_set_ram_discard_manager: assertion failed: (memory_region_is_ram(mr))
<!--
This is the upstream QEMU issue tracker.
If you are able to, it will greatly facilitate bug triage if you attempt
to reproduce the problem with the latest qemu.git master built from
source. See https://www.qemu.org/download/#source for instructions on
how to do this.
QEMU generally supports the last two releases advertised on
https://www.qemu.org/. Problems with distro-packaged versions of QEMU
older than this should be reported to the distribution instead.
See https://www.qemu.org/contribute/report-a-bug/ for additional
guidance.
If this is a security issue, please consult
https://www.qemu.org/contribute/security-process/
-->
## Host environment
- Operating system: Centos stream 9
- OS/kernel version: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master 7dff99b354601d
- Architecture: x86
- QEMU flavor: qemu-system-x86_64
- QEMU version: 10.2.50 (v10.2.0-2083-g2fb627ef2f)
- QEMU command line:
```
img=/home/centos9.qcow2
/home/qemu/build/qemu-system-x86_64 \
-name tdxvm,process=tdxvm,debug-threads=on \
-accel kvm \
-smp 4 \
-m 4096 \
-object tdx-guest,id=tdx \
-bios /home/edk2/Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd \
-cpu host \
-nodefaults -nographic \
-vga none \
-machine q35,kernel_irqchip=split,confidential-guest-support=tdx,hpet=off \
-drive file=$img,if=none,id=virtio-disk0 \
-device virtio-blk-pci,drive=virtio-disk0 \
-serial stdio
```
## Description of problem
TD guest fails to boot up with latest qemu master.git
## Steps to reproduce
1. Enable TDX in BIOS and kernel
1. boot TD guest with about command
## Additional information
Error log:
**
ERROR:../system/memory.c:2043:memory_region_set_ram_discard_manager: assertion failed: (memory_region_is_ram(mr))
Bail out! ERROR:../system/memory.c:2043:memory_region_set_ram_discard_manager: assertion failed: (memory_region_is_ram(mr))
boot_td.sh: line 32: 85421 Aborted (core dumped) /home/qemu/build/qemu-system-x86_64 -name tdxvm,process=tdxvm,debug-threads=on -accel kvm -smp 4 -m 4096 -object tdx-guest,id=tdx -bios /home/edk2/Build/OvmfX64/DEBUG_GCC5/FV/OVMF.fd -cpu host -nodefaults -nographic -vga none -machine q35,kernel_irqchip=split,confidential-guest-support=tdx,hpet=off -drive file=$img,if=none,id=virtio-disk0 -device virtio-blk-pci,drive=virtio-disk0 -device virtio-net-pci,netdev=nic0 -netdev user,id=nic0,hostfwd=tcp::10022-:22 -serial stdio
<!--
The line below ensures that proper tags are added to the issue.
Please do not remove it.
-->
issue