Re: [Qemu PATCH v2 5/9] hw/mem/cxl_type3: Add host backend and address space handling for DC regions

2023-07-26 Thread Nathan Fontenot
On 7/25/23 13:39, Fan Ni wrote: > From: Fan Ni > > Add (file/memory backed) host backend, all the dynamic capacity regions > will share a single, large enough host backend. Set up address space for > DC regions to support read/write operations to dynamic capacity for DCD. > > With the change,

Re: [Qemu PATCH RESEND 7/9] hw/cxl/cxl-mailbox-utils: Add mailbox commands to support add/release dynamic capacity response

2023-07-24 Thread Nathan Fontenot
&& dpa + len <= ent->start_dpa + ent->len) { > +ret = CXL_MBOX_INVALID_PA; > +goto out; > +} else if ((dpa < ent->start_dpa + ent->len > +&& dpa + len > ent->start_dpa + ent->len

Re: [PATCH 5/9] hw/mem/cxl_type3: Add host backend and address space handling for DC regions

2023-07-24 Thread Nathan Fontenot
error_setg(errp, "dynamic capacity must have backing device"); > +return false; > + } > +/* FIXME: set dc as nonvolatile for now */ > +memory_region_set_nonvolatile(dc_mr, true); > +memory_region_set_enabled(dc_mr, tru

Re: [RFC 4/7] hw/mem/cxl_type3: Add DC extent representative to cxl type3 device

2023-05-12 Thread Nathan Fontenot
On 5/11/23 12:56, Fan Ni wrote: > From: Fan Ni > > Add dynamic capacity extent information to the definition of > CXLType3Dev and add get DC extent list mailbox command based on > CXL.spec.3.0:.8.2.9.8.9.2. > > With this command, we can create dc regions as below: > > region=$(cat

Re: [RFC 2/7] hw/cxl/cxl-mailbox-utils: Add dynamic capacity region representative and mailbox command support

2023-05-11 Thread Nathan Fontenot
On 5/11/23 12:56, Fan Ni wrote: > From: Fan Ni > > Per cxl spec 3.0, add dynamic capacity region representative based on > Table 8-126 and extend the cxl type3 device definition to include dc region > information. Also, based on info in 8.2.9.8.9.1, add 'Get Dynamic Capacity > Configuration'

Re: [Qemu-devel] [PATCH v4] spapr: Ensure all LMBs are represented in ibm, dynamic-memory

2016-06-13 Thread Nathan Fontenot
are not considered > by the guest. > > Signed-off-by: Bharata B Rao <bhar...@linux.vnet.ibm.com> Reviewed-by: Nathan Fontenot <nf...@linux.vnet.ibm.com> > --- > Changes in v4: > > - Included address information for all LMBs in ibm,dynamic-memory. > - Use both

Re: [Qemu-devel] [RFC PATCH v2] spapr: Ensure all LMBs are represented in ibm, dynamic-memory

2016-06-06 Thread Nathan Fontenot
On 06/06/2016 09:47 AM, Bharata B Rao wrote: > On Mon, Jun 06, 2016 at 09:14:48AM -0500, Nathan Fontenot wrote: >> On 06/06/2016 06:37 AM, Bharata B Rao wrote: >>> Memory hotplug can fail for some combinations of RAM and maxmem when >>> DDW is enabled in the presence o

Re: [Qemu-devel] [RFC PATCH v2] spapr: Ensure all LMBs are represented in ibm, dynamic-memory

2016-06-06 Thread Nathan Fontenot
On 06/06/2016 06:37 AM, Bharata B Rao wrote: > Memory hotplug can fail for some combinations of RAM and maxmem when > DDW is enabled in the presence of devices like nec-usb-xhci. DDW depends > on maximum addressable memory returned by guest and this value is currently > being calculated wrongly by

Re: [Qemu-devel] [RFC PATCH v2 2/2] spapr: Memory hot-unplug support

2016-03-24 Thread Nathan Fontenot
On 03/22/2016 10:22 PM, David Gibson wrote: > On Wed, Mar 16, 2016 at 10:11:54AM +0530, Bharata B Rao wrote: >> On Wed, Mar 16, 2016 at 12:36:05PM +1100, David Gibson wrote: >>> On Tue, Mar 15, 2016 at 10:08:56AM +0530, Bharata B Rao wrote: Add support to hot remove pc-dimm memory devices.

Re: [Qemu-devel] [RFC PATCH v1] spapr: Memory hot-unplug support

2015-10-27 Thread Nathan Fontenot
On 10/26/2015 04:53 AM, Bharata B Rao wrote: > Add support to hot remove pc-dimm memory devices. > > TODO: In response to memory hot removal operation on a DIMM device, > guest kernel might refuse to offline a few LMBs that are part of that device. > In such cases, we will have a DIMM device that

Re: [Qemu-devel] [RFC PATCH v0] spapr: Disable memory hotplug when HTAB size is insufficient

2015-09-04 Thread Nathan Fontenot
On 09/04/2015 10:33 AM, Michael Roth wrote: > Quoting Nathan Fontenot (2015-09-03 13:50:59) >> On 09/01/2015 10:28 PM, Bharata B Rao wrote: >>> On Mon, Aug 24, 2015 at 09:01:51AM +0530, Bharata B Rao wrote: >>>> The hash table size allocated to guest depends on the

Re: [Qemu-devel] [RFC PATCH v0] spapr: Disable memory hotplug when HTAB size is insufficient

2015-09-03 Thread Nathan Fontenot
On 09/01/2015 10:28 PM, Bharata B Rao wrote: > On Mon, Aug 24, 2015 at 09:01:51AM +0530, Bharata B Rao wrote: >> The hash table size allocated to guest depends on the maxmem size. >> If the host isn't able to allocate the required hash table size but >> instead allocates less than the optimal

Re: [Qemu-devel] [RFC PATCH v0 3/5] spapr: Revert to memory@XXXX representation for non-hotplugged memory

2015-08-04 Thread Nathan Fontenot
On 08/03/2015 12:35 AM, Bharata B Rao wrote: Don't represent non-hotluggable memory under drconf node. With this we don't have to create DRC objects for them. The effect of this patch is that we revert back to memory@ representation for all the memory specified with -m option and

Re: [Qemu-devel] [PATCH v4 03/17] spapr_rtas: add get/set-power-level RTAS interfaces

2015-02-09 Thread Nathan Fontenot
23, 2014 at 06:30:17AM -0600, Michael Roth wrote: From: Nathan Fontenot nf...@linux.vnet.ibm.com Signed-off-by: Nathan Fontenot nf...@linux.vnet.ibm.com Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- hw/ppc/spapr_rtas.c | 25 + 1 file changed, 25

Re: [Qemu-devel] [PATCH 09/12] spapr_pci: enable basic hotplug operations

2014-09-04 Thread Nathan Fontenot
On 09/04/2014 11:34 AM, Michael Roth wrote: Quoting Michael Roth (2014-09-04 11:12:15) Quoting Bharata B Rao (2014-09-04 10:08:20) On Thu, Sep 4, 2014 at 4:33 AM, Michael Roth mdr...@linux.vnet.ibm.com wrote: +static int spapr_device_hotplug_add(DeviceState *qdev, PCIDevice *dev) +{ +

Re: [Qemu-devel] [PATCH 04/12] spapr_pci: add set-indicator RTAS interface

2014-09-04 Thread Nathan Fontenot
On 08/26/2014 06:36 AM, Alexander Graf wrote: On 19.08.14 02:21, Michael Roth wrote: From: Mike Day ncm...@ncultra.org Signed-off-by: Mike Day ncm...@ncultra.org Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com --- hw/ppc/spapr_pci.c | 119

Re: [Qemu-devel] [PATCH 07/12] spapr_pci: add ibm, configure-connector RTAS interface

2014-09-04 Thread Nathan Fontenot
On 08/26/2014 04:12 AM, Alexey Kardashevskiy wrote: On 08/19/2014 10:21 AM, Michael Roth wrote: Signed-off-by: Michael Roth mdr...@linux.vnet.ibm.com I have totally no idea what this patch actually does :) When is this rtas call made? Once after the guest received the check exception