Skip to content

Conversation

@ptrivedi
Copy link

@ptrivedi ptrivedi commented Oct 29, 2025

Summary of the Pull Request

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@ptrivedi ptrivedi requested a review from a team as a code owner October 29, 2025 22:15
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/shared/inc)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/src/windows/inc)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/src/windows/service/inc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE})
include_directories(${CMAKE_CURRENT_BINARY_DIR}/src/windows/wslaservice/inc/${TARGET_PLATFORM}/${CMAKE_BUILD_TYPE})
Copy link
Collaborator

Choose a reason for hiding this comment

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

This part of the diff is probably a result of being out of sync. Could you merge the latest feature/wsl-for-apps in this branch ? That should make the diff cleaner

@ptrivedi ptrivedi marked this pull request as draft October 30, 2025 00:02
}

HRESULT WSLASession::GetDisplayName(LPWSTR* DisplayName)
WSLASession::WSLASession(const WSLA_SESSION_CONFIGURATION& SessionConfiguration) : m_sessionConfig(SessionConfiguration)
Copy link
Collaborator

@OneBlue OneBlue Oct 30, 2025

Choose a reason for hiding this comment

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

FYI this makes a copy of m_sessionConfig, but that structure has pointers that are only valid while the COM call is in progress so in the future we'll need to make a deep copy of that structure

@ptrivedi ptrivedi force-pushed the user/ptrivedi/cont-mgr branch from 48da027 to 7f91c00 Compare October 30, 2025 00:11

#include <filesystem>
#include "wslservice.h"
#include "wslaservice.h"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This change and other similar ones are probably an artifact of the previous merge. Those should be removed (it's preventing the CI from building)

@ptrivedi ptrivedi force-pushed the user/ptrivedi/cont-mgr branch from 7f91c00 to c5c615d Compare October 30, 2025 13:59

#include "WSLAVirtualMachine.h"

namespace wsl::windows::service::wsla {
Copy link
Member

Choose a reason for hiding this comment

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

In general we like our namespace names to match the file paths, so this would be wsl::windows::wslaservice

};

private:
WSLAVirtualMachine* m_pVM;
Copy link
Member

Choose a reason for hiding this comment

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

I worry a little bit about the lifetime of the VM class. The session is the owner of it, but also the owner of the container manager. Might be good to think about this relationship. Regardless, a raw c-style pointer is probably not the right data type since there's no guarantee around lifetime.

Copy link
Author

Choose a reason for hiding this comment

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

Noted. This is just a placeholder for now, will need a revisit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants