Re: [PATCH v4 3/3] Add support for RAPL MSRs in KVM/Qemu

2024-04-05 Thread Anthony Harivel
Hi Daniel, > > +SocketAddress saddr = { > > +.type = SOCKET_ADDRESS_TYPE_UNIX, > > +.u.q_unix.path = socket_path > > +}; > > +QIOChannelSocket *sioc = qio_channel_socket_new(); > > +Error *local_err = NULL; > > + > > +int r; > > + > > +qio_channel_set_name(Q

Re: [PATCH v4 3/3] Add support for RAPL MSRs in KVM/Qemu

2024-03-21 Thread Daniel P . Berrangé
On Mon, Mar 18, 2024 at 04:12:16PM +0100, Anthony Harivel wrote: > Starting with the "Sandy Bridge" generation, Intel CPUs provide a RAPL > interface (Running Average Power Limit) for advertising the accumulated > energy consumption of various power domains (e.g. CPU packages, DRAM, > etc.). > > T

[PATCH v4 3/3] Add support for RAPL MSRs in KVM/Qemu

2024-03-18 Thread Anthony Harivel
Starting with the "Sandy Bridge" generation, Intel CPUs provide a RAPL interface (Running Average Power Limit) for advertising the accumulated energy consumption of various power domains (e.g. CPU packages, DRAM, etc.). The consumption is reported via MSRs (model specific registers) like MSR_PKG_E